From c07c1dfde3fed702ca91cddf0fd1d32d237b2594 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 1 Mar 2024 18:53:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BC=93=E5=AD=98=E7=BD=91=E5=85=83?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=94=B9=E6=8D=A2=E6=8E=A5=E5=8F=A3=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E7=BD=91=E5=85=83=E5=88=97=E8=A1=A8=E5=85=A8=E9=83=A8?= =?UTF-8?q?=E6=97=A0=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/neinfo.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/store/modules/neinfo.ts b/src/store/modules/neinfo.ts index 7c268afb..5b7f8314 100644 --- a/src/store/modules/neinfo.ts +++ b/src/store/modules/neinfo.ts @@ -1,6 +1,6 @@ import { defineStore } from 'pinia'; import { RESULT_CODE_SUCCESS } from '@/constants/result-constants'; -import { getNelistAll } from '@/api/configManage/neManage'; +import { listAllNeInfo } from '@/api/ne/neInfo'; import { parseDataToOptions } from '@/utils/parse-tree-utils'; import { getNeTraceInterfaceAll } from '@/api/traceManage/task'; import { getNePerformanceList } from '@/api/perfManage/taskManage'; @@ -58,10 +58,12 @@ const useNeInfoStore = defineStore('neinfo', { if (this.neList.length > 0) { return { code: 1, data: this.neList, msg: 'success' }; } - const res = await getNelistAll(); + const res = await listAllNeInfo({ + bandStatus: false, + }); if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) { // 原始列表 - this.neList = res.data; + this.neList = JSON.parse(JSON.stringify(res.data)); // 转级联数据 const options = parseDataToOptions(