Browse Source

refactor(frontend): 优化摄影页面状态管理

- 在获取照片记录后添加状态重置逻辑- 在控制台日志输出后添加状态重置逻辑
panqiuyao 4 months ago
parent
commit
c200a52508
1 changed files with 9 additions and 0 deletions
  1. 9 0
      frontend/src/views/Photography/shot.vue

+ 9 - 0
frontend/src/views/Photography/shot.vue

@@ -554,6 +554,11 @@ const reTakePicture = async (img)=>{
       runLoading.value = false;
       if(result.code === 0){
         getPhotoRecords()
+
+
+        runLoading.value = false;
+        reNosObj.value.goods_art_no = ''
+        reNosObj.value.action = ''
         setTimeout(()=>{
           showlastPhoto.value = false
         },6000)
@@ -879,6 +884,10 @@ clientStore.ipc.on(icpList.socket.message + '_run_mcu_update', (event, result) =
             },1000)
             console.log(item);
             console.log( goodsList.value);
+
+            runLoading.value = false;
+            reNosObj.value.goods_art_no = ''
+            reNosObj.value.action = ''
           }
         })
        // getPhotoRecords()