fix(测试跟踪): 功能用例编辑页切换项目失败

--bug=1022821 --user=陈建星 【测试跟踪】功能用例,在编辑页面通过左上角的下拉列表切换项目失败 https://www.tapd.cn/55049933/s/1337287
This commit is contained in:
chenjianxing 2023-02-17 16:43:48 +08:00 committed by jianxing
parent d09b8d9e57
commit 1036711907
1 changed files with 11 additions and 2 deletions

View File

@ -682,9 +682,18 @@ export default {
},
activated() {
this.loadTestCase();
if (localStorage.getItem('trackProjectChange')) {
//
this.$router.push('/track/case/all');
} else {
this.loadTestCase();
}
},
created(){
this.$EventBus.$on('projectChange', () => {
this.projectChange = true;
localStorage.setItem('trackProjectChange', 'true');
});
this.$EventBus.$on("handleSaveCaseWithEvent", this.handleSaveCaseWithEvent);
},
methods: {
@ -709,7 +718,7 @@ export default {
this.isLastedVersion = isLastedVersion;
},
loadTestCase() {
//
// ID
this.checkCurrentProject();
let initFuc = this.initEdit;