fix: 开站网元信息删除无id触发undefined
This commit is contained in:
@@ -61,12 +61,12 @@ function fnTabClose(key: string) {
|
|||||||
title: t('common.tipTitle'),
|
title: t('common.tipTitle'),
|
||||||
content: `${item.data.neName} ${t('views.ne.neInfo.delTip')}`,
|
content: `${item.data.neName} ${t('views.ne.neInfo.delTip')}`,
|
||||||
onOk() {
|
onOk() {
|
||||||
delNeInfo(item.data.id).finally(() => {
|
if (item.data.id) delNeInfo(item.data.id);
|
||||||
tabState.panes.splice(tabIndex, 1);
|
|
||||||
// 激活前一项标签
|
tabState.panes.splice(tabIndex, 1);
|
||||||
const idx = tabIndex === 0 ? 0 : tabIndex - 1;
|
// 激活前一项标签
|
||||||
tabState.activeKey = tabState.panes[idx].id;
|
const idx = tabIndex === 0 ? 0 : tabIndex - 1;
|
||||||
});
|
tabState.activeKey = tabState.panes[idx].id;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -647,11 +647,15 @@ onMounted(() => {
|
|||||||
|
|
||||||
<div class="ne-oper">
|
<div class="ne-oper">
|
||||||
<a-space direction="horizontal" :size="18">
|
<a-space direction="horizontal" :size="18">
|
||||||
<a-button @click="fnStepPrev()">
|
<a-button @click="fnStepPrev()" :disabled="tabState.confirmLoading">
|
||||||
{{ t('views.system.quickStart.exit') }}
|
{{ t('views.system.quickStart.exit') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
|
|
||||||
<a-button type="primary" @click="fnStepNext('NeInfoConfigPara5G')">
|
<a-button
|
||||||
|
type="primary"
|
||||||
|
@click="fnStepNext('NeInfoConfigPara5G')"
|
||||||
|
:disabled="tabState.confirmLoading"
|
||||||
|
>
|
||||||
{{ t('views.system.quickStart.stepNext') }}
|
{{ t('views.system.quickStart.stepNext') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-space>
|
</a-space>
|
||||||
|
|||||||
Reference in New Issue
Block a user