调整报错
This commit is contained in:
parent
d4c4f488d9
commit
6b5700b394
@ -21,7 +21,7 @@ export default class rect extends Group {
|
|||||||
create() {
|
create() {
|
||||||
let rect = null;
|
let rect = null;
|
||||||
for (const key in this.model.elemMap) {
|
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) {
|
if (!rect) {
|
||||||
rect = Vue.prototype.$iscs.iscsDevice[key].instance.getBoundingRect();
|
rect = Vue.prototype.$iscs.iscsDevice[key].instance.getBoundingRect();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user