mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 09:20:18 +08:00
fix(app): floor download progress percentage
This commit is contained in:
@@ -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 "安装中...";
|
||||
|
||||
Reference in New Issue
Block a user