From 9baaf0619a6eecd3b99af94ae2e9113ee5702161 Mon Sep 17 00:00:00 2001 From: "xinxin.wu" Date: Thu, 23 May 2024 17:59:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B):=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A6=96=E6=AC=A1=E4=B8=8A=E6=9D=A5=E5=85=B3?= =?UTF-8?q?=E8=81=94=E5=9C=BA=E6=99=AF=E7=94=A8=E4=BE=8B=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/ms-case-associate/index.vue | 18 ++++-------------- frontend/src/config/pathMap.ts | 14 -------------- 2 files changed, 4 insertions(+), 28 deletions(-) diff --git a/frontend/src/components/business/ms-case-associate/index.vue b/frontend/src/components/business/ms-case-associate/index.vue index dc5ec6e59c..d695251106 100644 --- a/frontend/src/components/business/ms-case-associate/index.vue +++ b/frontend/src/components/business/ms-case-associate/index.vue @@ -308,8 +308,6 @@ * @param isSetDefaultKey 是否设置第一个节点为选中节点 */ async function initModules(isSetDefaultKey = false) { - console.log(111); - try { moduleLoading.value = true; let params = { @@ -760,8 +758,12 @@ value: string | number | boolean | Record | (string | number | boolean | Record)[] ) { caseType.value = value as keyof typeof CaseLinkEnum; + if (!props.hideProjectSelect) { + initProjectList(true); + } initModules(true); searchCase(); + initFilter(); } watch( @@ -798,18 +800,6 @@ } ); - watch( - () => props.currentSelectCase, - () => { - if (!props.hideProjectSelect) { - initProjectList(true); - } - initModules(true); - searchCase(); - initFilter(); - } - ); - defineExpose({ initModules, }); diff --git a/frontend/src/config/pathMap.ts b/frontend/src/config/pathMap.ts index ed23cff7d5..1b52c8ace1 100644 --- a/frontend/src/config/pathMap.ts +++ b/frontend/src/config/pathMap.ts @@ -965,20 +965,6 @@ export const pathMap: PathMapItem[] = [ permission: [], level: MENU_LEVEL[2], }, - { - key: 'TEST_PLAN_INDEX_DETAIL', // 测试计划-测试计划-测试计划详情 - locale: 'menu.testPlan.testPlanDetail', - route: RouteEnum.TEST_PLAN_INDEX_DETAIL, - permission: [], - level: MENU_LEVEL[2], - }, - { - key: 'TEST_PLAN_INDEX_DETAIL_FEATURE_CASE_DETAIL', // 测试计划-测试计划-测试计划详情-功能用例详情 - locale: 'menu.caseManagement.caseManagementCaseDetail', - route: RouteEnum.TEST_PLAN_INDEX_DETAIL_FEATURE_CASE_DETAIL, - permission: [], - level: MENU_LEVEL[2], - }, ], }, {