Browse Source

refactor(frontend): 优化拍照失败后的视频显示逻辑

- 在 result.msg 存在时,添加 showVideo() 方法调用
- 确保在显示错误消息前停止加载状态
panqiuyao 5 months ago
parent
commit
8cadc39741
1 changed files with 2 additions and 0 deletions
  1. 2 0
      frontend/src/views/Photography/check.vue

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

@@ -230,6 +230,8 @@ clientStore.ipc.on(icpList.socket.message+'_run_mcu_single', async (event, resul
         step.value = 2
         loading.value = false;
       }else if(result.msg){
+        loading.value = false;
+        showVideo()
         if(result.code !== 0) ElMessage.error(result.msg)
       }
       clientStore.ipc.removeAllListeners(icpList.takePhoto.createMainImage);