mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-18 20:09:27 +08:00
修复完成成就没有进度条的bug
This commit is contained in:
parent
7f7f48e8a6
commit
739fbd4878
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user