From ac33ffa34a4fcf56bafeae5f6c3bb277ad288bfd Mon Sep 17 00:00:00 2001 From: alwayrun Date: Mon, 20 May 2024 17:48:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=97=AE=E5=8D=B7?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E9=A1=B5=E6=9C=80=E5=90=8E=E4=B8=80=E9=A2=98?= =?UTF-8?q?=E5=A4=84=E4=BA=8E=E6=B4=BB=E5=8A=A8=E7=8A=B6=E6=80=81=E4=B8=8B?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=AF=BC=E8=87=B4=E9=97=AE=E9=A2=98=20(#141)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/management/pages/edit/components/QuestionWrapper.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/src/management/pages/edit/components/QuestionWrapper.vue b/web/src/management/pages/edit/components/QuestionWrapper.vue index 4ca3df14..a334c75b 100644 --- a/web/src/management/pages/edit/components/QuestionWrapper.vue +++ b/web/src/management/pages/edit/components/QuestionWrapper.vue @@ -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