fix(测试跟踪): 修复qiankun组件加载报告切换错乱问题
Signed-off-by: fit2-zhao <yong.zhao@fit2cloud.com>
This commit is contained in:
parent
b6a9e9bc17
commit
e4fbf5035f
|
@ -43,6 +43,9 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
destroyed() {
|
||||||
|
this.$route.params ['reportId'] = null;
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -550,6 +550,7 @@ export default {
|
||||||
},
|
},
|
||||||
destroyed() {
|
destroyed() {
|
||||||
this.$EventBus.$off('projectChange', this.handleProjectChange);
|
this.$EventBus.$off('projectChange', this.handleProjectChange);
|
||||||
|
this.$route.params ['reportId'] = null;
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'$route'(to) {
|
'$route'(to) {
|
||||||
|
|
|
@ -23,6 +23,9 @@ export default {
|
||||||
return this.getRouteParam('isPlanReport');
|
return this.getRouteParam('isPlanReport');
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
destroyed() {
|
||||||
|
this.$route.params ['reportId'] = null;
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getRouteParam(name) {
|
getRouteParam(name) {
|
||||||
if (this.$route) {
|
if (this.$route) {
|
||||||
|
|
Loading…
Reference in New Issue