fix(app): floor download progress percentage

This commit is contained in:
Elysia
2026-02-14 23:56:49 +08:00
parent 7a97333bf7
commit ed92145f91

View File

@@ -243,7 +243,7 @@ const installBtnText = computed(() => {
if (installFeedback.value) {
const status = activeDownload.value?.status;
if (status === "downloading") {
return `下载中 ${(activeDownload.value?.progress || 0) * 100}%`;
return `下载中 ${Math.floor((activeDownload.value?.progress || 0) * 100)}%`;
}
if (status === "installing") {
return "安装中...";