Skip to content

Commit

Permalink
fix: 修复物料基础组件 BaseRate 重复触发 change 事件问题 (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
alwayrun authored and sudoooooo committed Jun 4, 2024
1 parent caca627 commit e2e82dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/src/materials/questions/widgets/BaseRate/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ export default defineComponent({
})
const handleClick = (num) => {
if (props.readonly) return
rating.value = num

if (rating.value !== num) {
rating.value = num
}
}
return {
rating,
Expand Down

0 comments on commit e2e82dc

Please sign in to comment.