fix(测试跟踪): 功能用例编辑页切换项目失败
--bug=1022821 --user=陈建星 【测试跟踪】功能用例,在编辑页面通过左上角的下拉列表切换项目失败 https://www.tapd.cn/55049933/s/1337287
This commit is contained in:
parent
d09b8d9e57
commit
1036711907
|
@ -682,9 +682,18 @@ export default {
|
|||
|
||||
},
|
||||
activated() {
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue