Skip to content

Commit

Permalink
fix: 修复问卷编辑页最后一题处于活动状态下删除导致问题 (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
alwayrun authored May 20, 2024
1 parent 318020e commit 9ccadb9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/src/management/pages/edit/components/QuestionWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ccadb9

Please sign in to comment.