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>
|
||||
|
||||
|
|
|
@ -550,6 +550,7 @@ export default {
|
|||
},
|
||||
destroyed() {
|
||||
this.$EventBus.$off('projectChange', this.handleProjectChange);
|
||||
this.$route.params ['reportId'] = null;
|
||||
},
|
||||
watch: {
|
||||
'$route'(to) {
|
||||
|
|
|
@ -23,6 +23,9 @@ export default {
|
|||
return this.getRouteParam('isPlanReport');
|
||||
},
|
||||
},
|
||||
destroyed() {
|
||||
this.$route.params ['reportId'] = null;
|
||||
},
|
||||
methods: {
|
||||
getRouteParam(name) {
|
||||
if (this.$route) {
|
||||
|
|
Loading…
Reference in New Issue