diff --git a/frontend/src/config/pathMap.ts b/frontend/src/config/pathMap.ts index 1700f90913..f5e0271533 100644 --- a/frontend/src/config/pathMap.ts +++ b/frontend/src/config/pathMap.ts @@ -79,6 +79,9 @@ export const pathMap: PathMapItem[] = [ route: RouteEnum.API_TEST_MANAGEMENT, permission: [], level: MENU_LEVEL[2], + routeQuery: { + tab: 'api', + }, }, { key: 'API_TEST_MANAGEMENT_MOCK', // 接口测试-接口定义-mock @@ -86,6 +89,9 @@ export const pathMap: PathMapItem[] = [ route: RouteEnum.API_TEST_MANAGEMENT, permission: [], level: MENU_LEVEL[2], + routeQuery: { + tab: 'mock', + }, }, { key: 'API_TEST_MANAGEMENT_CASE', // 接口测试-接口定义-case @@ -93,6 +99,9 @@ export const pathMap: PathMapItem[] = [ route: RouteEnum.API_TEST_MANAGEMENT, permission: [], level: MENU_LEVEL[2], + routeQuery: { + tab: 'case', + }, }, { key: 'API_TEST_MANAGEMENT_RECYCLE', // 接口测试-回收站 diff --git a/frontend/src/views/api-test/management/components/management/api/index.vue b/frontend/src/views/api-test/management/components/management/api/index.vue index 983c065873..714eb9f643 100644 --- a/frontend/src/views/api-test/management/components/management/api/index.vue +++ b/frontend/src/views/api-test/management/components/management/api/index.vue @@ -107,6 +107,7 @@