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 9283ca5123
commit 10459595a3
3 changed files with 7 additions and 2 deletions

View File

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

View File

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

View File

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