From dca4a854cd8d74a6bda06b2d8ae69333e9c8eaca Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Mon, 16 Dec 2024 16:03:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B&?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E5=8F=B0):=20=E4=BF=AE=E5=A4=8D=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=94=A8=E4=BE=8B=E5=85=B3=E8=81=94=E6=8A=A5=E6=97=A0?= =?UTF-8?q?=E6=9D=83=E9=99=90&=E5=B7=A5=E4=BD=9C=E5=8F=B0=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=8D=A1=E7=89=87=E9=99=90=E5=88=B6=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/business/ms-case-associate/index.vue | 2 +- .../workbench/homePage/components/apiAndScenarioCase.vue | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/business/ms-case-associate/index.vue b/frontend/src/components/business/ms-case-associate/index.vue index 1a1491e531..8e4fd020a4 100644 --- a/frontend/src/components/business/ms-case-associate/index.vue +++ b/frontend/src/components/business/ms-case-associate/index.vue @@ -843,7 +843,7 @@ watch( () => activeFolder.value, () => { - if (!isAdvancedSearchMode.value) { + if (!isAdvancedSearchMode.value && innerProject.value) { searchCase(); } } diff --git a/frontend/src/views/workbench/homePage/components/apiAndScenarioCase.vue b/frontend/src/views/workbench/homePage/components/apiAndScenarioCase.vue index 0710051b24..33f33c5785 100644 --- a/frontend/src/views/workbench/homePage/components/apiAndScenarioCase.vue +++ b/frontend/src/views/workbench/homePage/components/apiAndScenarioCase.vue @@ -36,7 +36,7 @@
{{ ele.name }}
{{ hasPermission ? addCommasToNumber(ele.count as number) : '-' }}
@@ -364,7 +364,10 @@ }); } - function goNavigation() { + function goNavigation(index: number) { + if (index === 0) { + return; + } const route = props.item.key === WorkCardEnum.API_CASE_COUNT ? ApiTestRouteEnum.API_TEST_MANAGEMENT