销毁实例前清除ibp数据

This commit is contained in:
fan 2019-09-05 09:35:32 +08:00
parent 063b6392fc
commit c4bf259918

View File

@ -78,6 +78,8 @@ export default {
beforeDestroy() {
if (this.$ibp) {
this.$ibp.dispose();
this.$ibp = '';
Vue.prototype.$ibp = '';
}
},
methods: {
@ -117,11 +119,9 @@ export default {
},
//
onSelected(em) {
this.$emit('onSelect', em);
},
//
onContextMenu(em) {
this.$emit('onMenu', em);
},
//
drawIbpInit() {
@ -140,7 +140,6 @@ export default {
this.$nextTick(() => {
this.width = this.$store.state.config.width;
this.height = this.$store.state.config.height;
this.$ibp && this.$ibp.resize({ width: this.width, height: this.height });
});
},