fix(测试跟踪): 切换项目测试计划跳转问题

--bug=1018333 --user=陈建星 【测试跟踪】测试计划执行中切换项目,切换的项目没有测试计划但依然存在数据 https://www.tapd.cn/55049933/s/1266020
--bug=1018347 --user=陈建星 【测试跟踪】切换项目,项目下的测试计划会出现为空的情况 https://www.tapd.cn/55049933/s/1266253
This commit is contained in:
chenjianxing 2022-10-18 15:59:06 +08:00 committed by jianxing
parent 6f7708e2b1
commit dd4cce692a
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ export default {
}, },
methods: { methods: {
handleProjectChange() { handleProjectChange() {
if (this.$route.name === 'planView') { if (this.$route.path.indexOf("plan/view") > 0) {
this.$router.push('/track/plan/all'); this.$router.push('/track/plan/all');
} }
}, },