Przeglądaj źródła

mod:进度条 调整

panqiuyao 6 miesięcy temu
rodzic
commit
683e68ed6f
1 zmienionych plików z 1 dodań i 1 usunięć
  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)
 }