Browse Source

mod:进度条 调整

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

+ 1 - 1
frontend/src/views/Photography/detail.vue

@@ -468,7 +468,7 @@ const openLoadingDialog = (timer: number) => {
   const step = 100 / timer
   INTERVAL.value = setInterval(() => {
     if (progress.value < 100) {
-      progress.value = Math.round(progress.value + step)
+      progress.value == Math.min(Math.round(progress.value + step),100)
     }
   }, 1000)
 }