소스 검색

feat: 同步锁定

gemercheung 9 달 전
부모
커밋
a7a719a8bb
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/view/case/photos/index.vue

+ 3 - 0
src/view/case/photos/index.vue

@@ -267,8 +267,10 @@ const renderCanvas = () => {
             }
           }
           window.scene.endScreenshot();
+          isSenseLoaded.value = true;
         } catch (error) {
           window.scene.endScreenshot();
+          isSenseLoaded.value = true;
         }
       }, 500);
     }
@@ -413,6 +415,7 @@ const handleImageDel = (ids) => {
 const handleExport = () => {
   if (window.scene) {
     if (!window.isExportScreenshot) {
+      isSenseLoaded.value = false;
       window.scene.exportScreenshot();
     }
   }