feat:给bus添加off时间 以及手动释放一些内存,隐藏system新增内容
This commit is contained in:
@@ -515,6 +515,17 @@
|
||||
}
|
||||
});
|
||||
this.initEvent();
|
||||
},
|
||||
beforeDestroy(){
|
||||
bus.$off("current-project-change", project => {
|
||||
this.currentProject = project;
|
||||
});
|
||||
bus.$on("current-module-change", module => {
|
||||
this.currentModule = module;
|
||||
});
|
||||
// bus.$on("endpoint-list-change", menu => {
|
||||
// this.getEndpointTableData();
|
||||
// });
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user