fix(测试跟踪): 修复qiankun组件加载报告切换错乱问题

Signed-off-by: fit2-zhao <yong.zhao@fit2cloud.com>
This commit is contained in:
fit2-zhao 2023-06-21 15:31:24 +08:00 committed by fit2-zhao
parent b6a9e9bc17
commit e4fbf5035f
3 changed files with 7 additions and 0 deletions

View File

@ -43,6 +43,9 @@ export default {
} }
}, },
}, },
destroyed() {
this.$route.params ['reportId'] = null;
},
}; };
</script> </script>

View File

@ -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) {

View File

@ -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) {