fix: 修复问卷编辑页最后一题处于活动状态下删除导致问题 (#141)

This commit is contained in:
alwayrun 2024-05-20 17:48:48 +08:00 committed by sudoooooo
parent 65884f80f6
commit ac33ffa34a

View File

@ -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