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