调整报错

This commit is contained in:
zyy 2020-11-04 13:20:12 +08:00
parent d4c4f488d9
commit 6b5700b394

View File

@ -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 {