mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 01:10:16 +08:00
fix(app): floor download progress percentage
This commit is contained in:
@@ -243,7 +243,7 @@ const installBtnText = computed(() => {
|
|||||||
if (installFeedback.value) {
|
if (installFeedback.value) {
|
||||||
const status = activeDownload.value?.status;
|
const status = activeDownload.value?.status;
|
||||||
if (status === "downloading") {
|
if (status === "downloading") {
|
||||||
return `下载中 ${(activeDownload.value?.progress || 0) * 100}%`;
|
return `下载中 ${Math.floor((activeDownload.value?.progress || 0) * 100)}%`;
|
||||||
}
|
}
|
||||||
if (status === "installing") {
|
if (status === "installing") {
|
||||||
return "安装中...";
|
return "安装中...";
|
||||||
|
|||||||
Reference in New Issue
Block a user