Browse Source

mod:进度条上限值改成100

panqiuyao 7 tháng trước cách đây
mục cha
commit
88a7aa9462
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      frontend/src/views/Photography/seniorDetail.vue

+ 2 - 1
frontend/src/views/Photography/seniorDetail.vue

@@ -151,7 +151,8 @@ const startProcess = () => {
   // 模拟进度更新
   const interval = setInterval(() => {
     if (progress.value < 100) {
-      progress.value += 10
+    //  progress.value += 10
+      progress.value = Math.min(progress.value + 10, 100)
     } else {
       clearInterval(interval)
       message.value = '全部处理完毕'