Browse Source

fix(photography): 防止处理完成后更新进度条

- 在进度条更新逻辑中增加状态检查
- 避免在"处理完成"或"处理失败"状态下继续更新进度- 确保进度条在最终状态时不再变动
panqiuyao 1 tháng trước cách đây
mục cha
commit
f41b4e3dbe
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      frontend/src/views/Photography/detail.vue

+ 3 - 0
frontend/src/views/Photography/detail.vue

@@ -851,6 +851,9 @@ const handleSegmentProgressMessage = (data: any) => {
 
     // 更新新的进度条
     if (data.progress) {
+      if(['处理完成','处理失败'].includes(newSteps[0].status)){
+        return;
+      }
       updateProgressStep('segment_progress', data.progress)
       if(data.progress?.status === '处理完成'){
       //  openOutputDir()