From b84d6bb9fc9781665bc532992e14870a56a55137 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 24 May 2024 17:54:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BC=80=E7=AB=99=E7=BD=91=E5=85=83?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=88=A0=E9=99=A4=E6=97=A0id=E8=A7=A6?= =?UTF-8?q?=E5=8F=91undefined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../quick-start/components/NeInfoConfig.vue | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/views/system/quick-start/components/NeInfoConfig.vue b/src/views/system/quick-start/components/NeInfoConfig.vue index bb8177d3..d393e0d0 100644 --- a/src/views/system/quick-start/components/NeInfoConfig.vue +++ b/src/views/system/quick-start/components/NeInfoConfig.vue @@ -61,12 +61,12 @@ function fnTabClose(key: string) { title: t('common.tipTitle'), content: `${item.data.neName} ${t('views.ne.neInfo.delTip')}`, onOk() { - delNeInfo(item.data.id).finally(() => { - tabState.panes.splice(tabIndex, 1); - // 激活前一项标签 - const idx = tabIndex === 0 ? 0 : tabIndex - 1; - tabState.activeKey = tabState.panes[idx].id; - }); + if (item.data.id) delNeInfo(item.data.id); + + tabState.panes.splice(tabIndex, 1); + // 激活前一项标签 + const idx = tabIndex === 0 ? 0 : tabIndex - 1; + tabState.activeKey = tabState.panes[idx].id; }, }); } @@ -609,7 +609,7 @@ onMounted(() => { :label-wrap="true" > {
- + {{ t('views.system.quickStart.exit') }} - + {{ t('views.system.quickStart.stepNext') }}