Procházet zdrojové kódy

mod:拍摄商品 调整

panqiuyao před 7 měsíci
rodič
revize
0653353fd4
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. 5 0
      frontend/src/views/Photography/shot.vue

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

@@ -664,6 +664,7 @@ const  getLastPhotoRecord = async ()=>{
 clientStore.ipc.on(icpList.socket.message + '_run_mcu_update', (event, result) => {
   console.log('_run_mcu_update')
   console.log(result)
+  console.log('run_mcu_update:'+new Date().toLocaleString())  // 打印当前时间
 
   if(result.code === 0){
     if(lastPhoto.value?.file_path){
@@ -671,6 +672,10 @@ clientStore.ipc.on(icpList.socket.message + '_run_mcu_update', (event, result) =
 
       if(runAction.value.goods_art_no === result.data?.goods_art_no){
         showlastPhoto.value = true
+        getPhotoRecords()
+        setTimeout(()=>{
+          getPhotoRecords()
+        },2000)
       }
     }
     lastPhoto.value = result.data