From eadd4709eef3b53d0b6bd07dfabeac4c50e82f78 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 11 Jun 2024 10:28:16 +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=E6=97=A0=E7=BB=88=E7=AB=AF=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=97=B6=E4=B8=8D=E6=98=BE=E7=A4=BA=EF=BC=8C=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E5=88=99=E6=96=B0=E5=BB=BA=E4=B8=AA=E9=BB=98=E8=AE=A4=E7=9A=84?= =?UTF-8?q?=E5=8D=A0=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/quick-start/components/NeInfoConfig.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/system/quick-start/components/NeInfoConfig.vue b/src/views/system/quick-start/components/NeInfoConfig.vue index d2a443e6..0dc273e2 100644 --- a/src/views/system/quick-start/components/NeInfoConfig.vue +++ b/src/views/system/quick-start/components/NeInfoConfig.vue @@ -313,16 +313,19 @@ function fnGetList() { listAllNeInfo({ bandHost: true, }).then(res => { - console.log(res); if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) { for (const item of res.data) { - if (item.neType === 'OMC') continue; + if (item.neType === 'OMC' || !Array.isArray(item.hosts)) continue; tabState.panes.push({ key: `${item.neType}@${item.neId}`, data: item, status: false, }); } + // 没有终端信息时,新建一个占位 + if (tabState.panes.length === 0) { + fnTabCreate(); + } // 选择首个 if (tabState.panes.length > 0) { tabState.activeKey = tabState.panes[0].key;