fix(接口测试): 修复跳转到覆盖率页面点击切换项目无效的缺陷

--bug=1024924 --user=王孝刚 【接口测试】首页-接口数量统计-点击接口覆盖率跳转到页面a-点击切换项目无效
https://www.tapd.cn/55049933/s/1356550
This commit is contained in:
wxg0103 2023-03-28 15:26:13 +08:00 committed by fit2-zhao
parent 2a1bf7c906
commit a68ca40dc0
1 changed files with 11 additions and 0 deletions

View File

@ -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) {