销毁实例前清除ibp数据
This commit is contained in:
parent
063b6392fc
commit
c4bf259918
@ -78,6 +78,8 @@ export default {
|
|||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
if (this.$ibp) {
|
if (this.$ibp) {
|
||||||
this.$ibp.dispose();
|
this.$ibp.dispose();
|
||||||
|
this.$ibp = '';
|
||||||
|
Vue.prototype.$ibp = '';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -117,11 +119,9 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击选择事件
|
// 点击选择事件
|
||||||
onSelected(em) {
|
onSelected(em) {
|
||||||
this.$emit('onSelect', em);
|
|
||||||
},
|
},
|
||||||
// 右键点击事件
|
// 右键点击事件
|
||||||
onContextMenu(em) {
|
onContextMenu(em) {
|
||||||
this.$emit('onMenu', em);
|
|
||||||
},
|
},
|
||||||
// 绘图时调用,元素可拖拽
|
// 绘图时调用,元素可拖拽
|
||||||
drawIbpInit() {
|
drawIbpInit() {
|
||||||
@ -140,7 +140,6 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.width = this.$store.state.config.width;
|
this.width = this.$store.state.config.width;
|
||||||
this.height = this.$store.state.config.height;
|
this.height = this.$store.state.config.height;
|
||||||
|
|
||||||
this.$ibp && this.$ibp.resize({ width: this.width, height: this.height });
|
this.$ibp && this.$ibp.resize({ width: this.width, height: this.height });
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user