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], - }, ], }, {