浏览代码

mod:进度条 调整

panqiuyao 6 月之前
父节点
当前提交
683e68ed6f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
   const step = 100 / timer
   INTERVAL.value = setInterval(() => {
   INTERVAL.value = setInterval(() => {
     if (progress.value < 100) {
     if (progress.value < 100) {
-      progress.value = Math.round(progress.value + step)
+      progress.value == Math.min(Math.round(progress.value + step),100)
     }
     }
   }, 1000)
   }, 1000)
 }
 }