Browse Source

报错修复

haojianlong 4 năm trước cách đây
mục cha
commit
9d21ff3f79
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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();
     },
     //编辑