From c4bf2599183a7decdd6c1da9b2781d5894771ce3 Mon Sep 17 00:00:00 2001 From: fan <18706759286@163.com> Date: Thu, 5 Sep 2019 09:35:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=80=E6=AF=81=E5=AE=9E=E4=BE=8B=E5=89=8D?= =?UTF-8?q?=E6=B8=85=E9=99=A4ibp=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ibp/index.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/views/ibp/index.vue b/src/views/ibp/index.vue index 995e4628e..e822bf1c3 100644 --- a/src/views/ibp/index.vue +++ b/src/views/ibp/index.vue @@ -78,7 +78,9 @@ export default { beforeDestroy() { if (this.$ibp) { this.$ibp.dispose(); - } + this.$ibp = ''; + Vue.prototype.$ibp = ''; + } }, methods: { show () { @@ -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 }); }); },