From 739fbd4878020a8b901570cf47206a48dfcc1a46 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Mon, 24 Apr 2023 21:14:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=8C=E6=88=90=E6=88=90?= =?UTF-8?q?=E5=B0=B1=E6=B2=A1=E6=9C=89=E8=BF=9B=E5=BA=A6=E6=9D=A1=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ui/completeAchievement.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/completeAchievement.vue b/src/ui/completeAchievement.vue index 89d122d..9251dcd 100644 --- a/src/ui/completeAchievement.vue +++ b/src/ui/completeAchievement.vue @@ -44,7 +44,7 @@ const point = achi.point; const nowPoint = getNowPoint() - point; const now = ref(nowPoint); -const progress = computed(() => Math.floor(now.value / totalPoint)); +const progress = computed(() => now.value / totalPoint); onMounted(async () => { await sleep(500); @@ -57,7 +57,7 @@ onMounted(async () => { ticker.destroy(); } const ratio = (nowTime - time) / 1000; - now.value = Math.round(nowPoint + point * ratio); + now.value = Math.floor(nowPoint + point * ratio); }); await sleep(4600); showComplete.value = false;