From a68ca40dc0e8bf3a4901939d678081439ddb0bab Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 28 Mar 2023 15:26:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B7=B3=E8=BD=AC=E5=88=B0=E8=A6=86=E7=9B=96?= =?UTF-8?q?=E7=8E=87=E9=A1=B5=E9=9D=A2=E7=82=B9=E5=87=BB=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=97=A0=E6=95=88=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1024924 --user=王孝刚 【接口测试】首页-接口数量统计-点击接口覆盖率跳转到页面a-点击切换项目无效 https://www.tapd.cn/55049933/s/1356550 --- .../src/components/head/ProjectSearchList.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/framework/sdk-parent/frontend/src/components/head/ProjectSearchList.vue b/framework/sdk-parent/frontend/src/components/head/ProjectSearchList.vue index 72218ee78e..e54107223d 100644 --- a/framework/sdk-parent/frontend/src/components/head/ProjectSearchList.vue +++ b/framework/sdk-parent/frontend/src/components/head/ProjectSearchList.vue @@ -193,6 +193,17 @@ export default { // 去掉末尾 & return path.substring(0, path.length - 1); } + if (path.startsWith('/api/definition')) { + this.$route.params.dataSelectRange = ''; + this.$route.params.projectId = getCurrentProjectID(); + return '/api/definition'; + } + if (path.startsWith('/api/automation')) { + this.$route.params.projectId = getCurrentProjectID(); + this.$route.params.dataSelectRange = ''; + return '/api/automation'; + } + return path; }, change(projectId) {