Browse Source

报错修复

haojianlong 4 years ago
parent
commit
9d21ff3f79
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/components/ledger/lib/cenoteGraphy.vue

+ 3 - 1
src/components/ledger/lib/cenoteGraphy.vue

@@ -230,7 +230,9 @@ export default {
     //取消编辑
     cancelEdit() {
       this.config.isEdit = false;
-      this.scene.clearZoneSelection();
+      if (this.scene) {
+        this.scene.clearZoneSelection();
+      }
       this.getBusinessSpace();
     },
     //编辑