From 6b5700b3947ea23e5be7cede8fb7d53f50e4370a Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Wed, 4 Nov 2020 13:20:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/iscs/shape/group.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iscs/shape/group.js b/src/iscs/shape/group.js index 984be25f6..f7413cfad 100644 --- a/src/iscs/shape/group.js +++ b/src/iscs/shape/group.js @@ -21,7 +21,7 @@ export default class rect extends Group { create() { let rect = null; for (const key in this.model.elemMap) { - if (Vue.prototype.$iscs.iscsDevice[key].instance) { + if (Vue.prototype.$iscs.iscsDevice[key] && Vue.prototype.$iscs.iscsDevice[key].instance) { if (!rect) { rect = Vue.prototype.$iscs.iscsDevice[key].instance.getBoundingRect(); } else {