fix: 修复物料题型通用组件 BaseChoice 单选类型题重复触发 change 事件问题 (#164)
This commit is contained in:
parent
39ff6acf99
commit
de7344b192
@ -64,8 +64,11 @@ export default defineComponent({
|
||||
const onRadioClick = (item, $event) => {
|
||||
$event && $event.stopPropagation()
|
||||
$event && $event.preventDefault()
|
||||
|
||||
if (!isChecked(item)) {
|
||||
emit('change', item.hash)
|
||||
}
|
||||
}
|
||||
const onCheckboxClick = (item, $event) => {
|
||||
$event && $event.stopPropagation()
|
||||
$event && $event.preventDefault()
|
||||
|
Loading…
Reference in New Issue
Block a user