Browse Source

fix(photography): 修复拍摄功能中的条件判断逻辑

- 注释掉重复的加载状态检查条件
- 移除冗余的错误提示返回逻辑
- 保留拍摄成功提示信息
- 优化代码结构避免潜在的执行冲突
panqiuyao 1 day ago
parent
commit
ab7e25534c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      frontend/src/views/Photography/mixin/usePhotography.ts

+ 2 - 2
frontend/src/views/Photography/mixin/usePhotography.ts

@@ -775,10 +775,10 @@ const onRemoteControl = async (type) => {
         console.log('_handler_take_picture')
         console.log(result)
         if (result.code === 0) {
-          if (runLoading.value || takePictureLoading.value) {
+  /*        if (runLoading.value || takePictureLoading.value) {
             ElMessage.error('拍摄程序正在运行,请稍候')
             return
-          }
+          }*/
 
           ElMessage.success('正在拍摄中,请稍候')