Browse Source

mod:首次拍照 白屏

panqiuyao 7 months ago
parent
commit
e97491260b
1 changed files with 2 additions and 2 deletions
  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