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') }}