浏览代码

mod:监听图片处理完成事件

panqiuyao 8 月之前
父节点
当前提交
20b221fb13
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      frontend/src/views/Photography/shot.vue

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

@@ -344,6 +344,10 @@ onMounted(async () => {
     console.log('_image_process')
     console.log(result)
     getPhotoRecords()
+    // 延迟两秒再获取一遍数据
+    setTimeout(()=>{
+      getPhotoRecords()
+    },3000)
   })
 
   // 监听拍照完成事件
@@ -355,7 +359,7 @@ onMounted(async () => {
       // 延迟两秒再获取一遍数据
       setTimeout(()=>{
         getPhotoRecords()
-      },2000)
+      },3000)
       takePictureLoading.value = false;
     }