fix(测试跟踪): 已归档计划点击父级tab脑图无弹窗

--user=郭雨琦
--bug=1013105
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001013105
本次提交
修复已归档测试计划点击与测试计划同级tab页面导致弹窗出现-实际不出现
修复已归档测试计划点击与测试跟踪同级tab页面导致弹窗出现-实际不出现
This commit is contained in:
guoyuqi 2022-05-13 11:27:42 +08:00 committed by f2c-ci-robot[bot]
parent 7a9bf0baf5
commit 8bd07d9962
1 changed files with 7 additions and 3 deletions

View File

@ -177,9 +177,13 @@ export default {
},
handleBeforeRouteLeave(to) {
if (this.$store.state.isTestCaseMinderChanged) {
this.$refs.isChangeConfirm.open();
this.tmpPath = to.path;
return false;
if (this.planStatus !== 'Archived') {
this.$refs.isChangeConfirm.open();
this.tmpPath = to.path;
return false;
} else {
return true;
}
} else {
return true;
}