mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-19 04:19:30 +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 nowPoint = getNowPoint() - point;
|
||||||
const now = ref(nowPoint);
|
const now = ref(nowPoint);
|
||||||
const progress = computed(() => Math.floor(now.value / totalPoint));
|
const progress = computed(() => now.value / totalPoint);
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await sleep(500);
|
await sleep(500);
|
||||||
@ -57,7 +57,7 @@ onMounted(async () => {
|
|||||||
ticker.destroy();
|
ticker.destroy();
|
||||||
}
|
}
|
||||||
const ratio = (nowTime - time) / 1000;
|
const ratio = (nowTime - time) / 1000;
|
||||||
now.value = Math.round(nowPoint + point * ratio);
|
now.value = Math.floor(nowPoint + point * ratio);
|
||||||
});
|
});
|
||||||
await sleep(4600);
|
await sleep(4600);
|
||||||
showComplete.value = false;
|
showComplete.value = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user