feat:添加beforeDestroy生命周期,解绑bus.$on 以及。on事件

This commit is contained in:
zhangyu
2020-11-20 11:19:25 +08:00
parent 8fb4540ab5
commit c3ac72e483
30 changed files with 99 additions and 173 deletions

View File

@@ -1581,17 +1581,19 @@
this.setFreshDataTimer();
})
window.onresize = () => {
let vm = this;
setTimeout(() => {
//vm.map.
}, 500);
};
// window.onresize = () => {
// let vm = this;
// setTimeout(() => {
// //vm.map.
// }, 500);
// };
},
beforeDestroy(){
this.allProject=null;
},
destroyed() {
clearInterval(this.freshDataTimer);
clearInterval(this.freshDateTimer);
this.allProject=null;
}
}
</script>