fix(测试跟踪): 脑图选中模块后切换到其他项目仍显示上个项目的脑图

--bug=1013084 --user=陈建星 【测试跟踪】github#13426 选中子模块脑图后,切换到其他项目,仍显示上个项目脑图名称 https://www.tapd.cn/55049933/s/1156721
This commit is contained in:
chenjianxing 2022-05-12 13:52:29 +08:00 committed by 刘瑞斌
parent ab511d04f6
commit bcafb964c9
3 changed files with 7 additions and 2 deletions

View File

@ -127,6 +127,8 @@ export default {
},
},
mounted() {
this.$store.commit('setTestCaseSelectNode', {});
this.$store.commit('setTestCaseSelectNodeIds', []);
this.list();
},
computed: {

View File

@ -101,6 +101,7 @@ export default {
'planStatus'
],
mounted() {
this.$store.commit('setTestPlanViewSelectNode', {});
this.initData();
},
computed: {

View File

@ -101,10 +101,12 @@ export default {
'versionEnable',
],
mounted() {
this.getNodeTreeByReviewId()
this.$store.commit('setTestReviewSelectNode', {});
this.$store.commit('setTestReviewSelectNodeIds', []);
this.getNodeTreeByReviewId();
},
activated() {
this.getNodeTreeByReviewId()
this.getNodeTreeByReviewId();
},
watch: {
reviewId() {