瀏覽代碼

报错修复

haojianlong 4 年之前
父節點
當前提交
9d21ff3f79
共有 1 個文件被更改,包括 3 次插入1 次删除
  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();
     },
     //编辑