fix: 修复问卷编辑页最后一题处于活动状态下删除导致问题 (#141)
This commit is contained in:
parent
65884f80f6
commit
ac33ffa34a
@ -118,6 +118,10 @@ const onDelete = async () => {
|
||||
type: 'warning'
|
||||
})
|
||||
|
||||
if (props.isSelected && props.isLast) {
|
||||
emit('select', null)
|
||||
}
|
||||
|
||||
const index = props.qIndex
|
||||
emit('changeSeq', { type: 'delete', index })
|
||||
isHover.value = false
|
||||
|
Loading…
Reference in New Issue
Block a user