From 3128e8091689fbc15f943c770a1fb84b9565fc24 Mon Sep 17 00:00:00 2001 From: baiqi Date: Wed, 14 Aug 2024 14:23:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=97=A5=E5=BF=97):=20=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=97=A5=E5=BF=97=E8=B7=B3=E8=BD=AC=20api?= =?UTF-8?q?=E3=80=81case=E3=80=81mock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/config/pathMap.ts | 9 +++++++++ .../management/components/management/api/index.vue | 8 ++++++++ .../management/components/management/case/index.vue | 9 +++++++++ .../api-test/management/components/management/index.vue | 9 +++++++++ 4 files changed, 35 insertions(+) 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 @@