From 9971100fc0e87d70c5c02e95a2ced48ef449d3f7 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Tue, 24 Dec 2024 18:09:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B7=A5=E4=BD=9C=E5=8F=B0):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=B7=A5=E4=BD=9C=E5=8F=B0=E6=B5=8B=E8=AF=95=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E6=A6=82=E8=A7=88=E5=88=A0=E9=99=A4=E5=90=8E=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E9=A1=B9=E7=9B=AE=E5=88=97=E8=A1=A8bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workbench/homePage/components/testPlanOverview.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/workbench/homePage/components/testPlanOverview.vue b/frontend/src/views/workbench/homePage/components/testPlanOverview.vue index 120ba2668e..a69fb7c8f4 100644 --- a/frontend/src/views/workbench/homePage/components/testPlanOverview.vue +++ b/frontend/src/views/workbench/homePage/components/testPlanOverview.vue @@ -378,6 +378,7 @@ } async function refreshHandler(newProjectId: string) { + projectOptions.value = appStore.projectList.map((e) => ({ value: e.id, label: e.name })); const cascaderOption = projectOptions.value.find((e) => e.value === newProjectId); if (cascaderOption) { @@ -424,7 +425,7 @@ selectValue.value = []; const tempArr: string[] = []; selectedData.forEach((e) => { - if (e) { + if (e && e !== 'NONE') { tempArr.push(e); } }); @@ -446,7 +447,7 @@ const selectedData = [newProjectId, props.item.groupId, props.item.planId]; const tempArr: string[] = []; selectedData.forEach((e) => { - if (e) { + if (e && e !== 'NONE') { tempArr.push(e); } }); @@ -454,7 +455,6 @@ }); onMounted(() => { - projectOptions.value = appStore.projectList.map((e) => ({ value: e.id, label: e.name })); const [newProjectId] = props.item.projectIds; if (props.item.planId) { selectValue.value = getSelectedParams();