소스 검색

mod:首次拍照 白屏

panqiuyao 7 달 전
부모
커밋
e97491260b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      frontend/src/views/Photography/shot.vue

+ 2 - 2
frontend/src/views/Photography/shot.vue

@@ -642,8 +642,8 @@ const  getLastPhotoRecord = async ()=>{
     console.log(runAction.value)
     clientStore.ipc.removeAllListeners(icpList.takePhoto.getLastPhotoRecord);
     if(result.code === 0){
-      if(lastPhoto.value.image_path){
-        if(  lastPhoto.value.image_path == result.data.image_path) return;
+      if(lastPhoto.value?.image_path){
+        if(  lastPhoto.value?.image_path == result.data?.image_path) return;
 
         if(runAction.value.goods_art_no === result.data.goods_art_no){
           showlastPhoto.value = true