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