feat:给bus添加off时间 以及手动释放一些内存,隐藏system新增内容

This commit is contained in:
zhangyu
2020-11-20 10:15:17 +08:00
parent ba188b9128
commit 99779334b2
15 changed files with 77 additions and 33 deletions

View File

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