feat:添加beforeDestroy生命周期,解绑bus.$on 以及。on事件
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user