瀏覽代碼

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)
     console.log(runAction.value)
     clientStore.ipc.removeAllListeners(icpList.takePhoto.getLastPhotoRecord);
     clientStore.ipc.removeAllListeners(icpList.takePhoto.getLastPhotoRecord);
     if(result.code === 0){
     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){
         if(runAction.value.goods_art_no === result.data.goods_art_no){
           showlastPhoto.value = true
           showlastPhoto.value = true