Browse Source

feat(photography): 添加加载状态

- 在 createMainImage 函数中添加 loading.value = true,以显示加载状态
- 此修改提高了用户交互体验,避免用户在处理照片时产生等待感
panqiuyao 5 months ago
parent
commit
767a83f9d3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      frontend/src/views/Photography/check.vue

+ 1 - 0
frontend/src/views/Photography/check.vue

@@ -235,6 +235,7 @@ function takePictures() {
 // 获取主图
 function  createMainImage (file_path){
 
+  loading.value = true;
   clientStore.ipc.removeAllListeners(icpList.takePhoto.createMainImage);
   clientStore.ipc.send(icpList.takePhoto.createMainImage,{
     file_path:file_path