调整报错
This commit is contained in:
parent
d4c4f488d9
commit
6b5700b394
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user