File tree 6 files changed +47
-17
lines changed
6 files changed +47
-17
lines changed Original file line number Diff line number Diff line change 262
262
263
263
this.$store.state.isExternal = window.IS_EXTERNAL ? JSON.parse(window.IS_EXTERNAL) : false;
264
264
},
265
+
265
266
methods: {
266
267
/** 初始化脱敏灰度相关的数据 */
267
268
initMaskingToggle() {
Original file line number Diff line number Diff line change @@ -82,18 +82,6 @@ const mountedVueInstance = router => {
82
82
App,
83
83
} ,
84
84
template : '<App/>' ,
85
- mounted ( ) {
86
- const bkBizId = this . $store . state . bkBizId ;
87
- const spaceUid = this . $store . state . spaceUid ;
88
-
89
- this . $router . replace ( {
90
- query : {
91
- ...this . $route . query ,
92
- bizId : bkBizId ,
93
- spaceUid : spaceUid ,
94
- } ,
95
- } ) ;
96
- } ,
97
85
} ) ;
98
86
} ) ;
99
87
} ;
Original file line number Diff line number Diff line change 73
73
this.isLoading = bool;
74
74
},
75
75
},
76
+ mounted() {
77
+ const bkBizId = this.$store.state.bkBizId;
78
+ const spaceUid = this.$store.state.spaceUid;
79
+
80
+ this.$router.replace({
81
+ query: {
82
+ bizId: bkBizId,
83
+ spaceUid: spaceUid,
84
+ ...this.$route.query,
85
+ },
86
+ });
87
+ },
76
88
};
77
89
</script>
78
90
Original file line number Diff line number Diff line change 89
89
this.isExpand = data;
90
90
},
91
91
},
92
+ mounted() {
93
+ const bkBizId = this.$store.state.bkBizId;
94
+ const spaceUid = this.$store.state.spaceUid;
95
+
96
+ this.$router.replace({
97
+ query: {
98
+ bizId: bkBizId,
99
+ spaceUid: spaceUid,
100
+ ...this.$route.query,
101
+ },
102
+ });
103
+ },
92
104
};
93
105
</script>
94
106
Original file line number Diff line number Diff line change @@ -271,6 +271,17 @@ export default () => {
271
271
/** * 结束计算 ***/
272
272
onMounted ( ( ) => {
273
273
RetrieveHelper . onMounted ( ) ;
274
+
275
+ const bkBizId = store . state . bkBizId ;
276
+ const spaceUid = store . state . spaceUid ;
277
+
278
+ router . replace ( {
279
+ query : {
280
+ bizId : bkBizId ,
281
+ spaceUid : spaceUid ,
282
+ ...route . query ,
283
+ } ,
284
+ } ) ;
274
285
} ) ;
275
286
276
287
onUnmounted ( ( ) => {
Original file line number Diff line number Diff line change 602
602
},
603
603
mounted() {
604
604
window.bus.$on('retrieveWhenChartChange', this.retrieveWhenChartChange);
605
+
606
+ const bkBizId = this.$store.state.bkBizId;
607
+ const spaceUid = this.$store.state.spaceUid;
608
+
609
+ this.$router.replace({
610
+ query: {
611
+ bizId: bkBizId,
612
+ spaceUid: spaceUid,
613
+ ...this.$route.query,
614
+ },
615
+ });
605
616
},
606
- // beforeUnmount() {
607
- // updateTimezone();
608
- // this.$store.commit('updateUnionIndexList', []);
609
- // window.bus.$off('retrieveWhenChartChange', this.retrieveWhenChartChange);
610
617
611
- // },
612
618
beforeDestroy() {
613
619
this.isInDestroy = true;
614
620
updateTimezone();
You can’t perform that action at this time.
0 commit comments