소스 검색

报错修复

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();
     },
     //编辑