mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-04 21:19:52 +08:00
fix(测试跟踪):用例评审详情页面切换工作空间,页面未刷新
--bug=1026476 --user=王旭 【测试跟踪】在用例评审详情页面切换工作空间后,还是显示的之前的评审内容 https://www.tapd.cn/55049933/s/1376311
This commit is contained in:
parent
9e15bd4d85
commit
dbec44fa70
@ -85,11 +85,10 @@ export default {
|
||||
if (projectId) {
|
||||
sessionStorage.setItem(PROJECT_ID, projectId);
|
||||
}
|
||||
this.$EventBus.$on('projectChange', () => {
|
||||
if (this.$route.name === 'testCaseReviewView') {
|
||||
this.$router.push('/track/review/all');
|
||||
}
|
||||
});
|
||||
this.$EventBus.$on('projectChange', this.handleProjectChange);
|
||||
},
|
||||
destroyed() {
|
||||
this.$EventBus.$off('projectChange', this.handleProjectChange);
|
||||
},
|
||||
mounted() {
|
||||
this.initData();
|
||||
@ -115,6 +114,13 @@ export default {
|
||||
this.genRedirectParam();
|
||||
},
|
||||
methods: {
|
||||
handleProjectChange() {
|
||||
if (this.$route.path.indexOf("track/review") > -1) {
|
||||
this.$nextTick(() => {
|
||||
this.$router.push('/track/review/all');
|
||||
});
|
||||
}
|
||||
},
|
||||
handleSelect(key) {
|
||||
this.activeIndex = key;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user