feat(install): add metalink download support and progress tracking

close #12
This commit is contained in:
Elysia
2026-02-14 00:16:18 +08:00
parent 7aeb3d5dd4
commit 74c4eb4fbc
8 changed files with 276 additions and 78 deletions
+2 -2
View File
@@ -86,7 +86,7 @@
</p>
<p class="text-xs text-slate-500 dark:text-slate-400">
<span v-if="download.status === 'downloading'"
>下载中 {{ download.progress }}%</span
>下载中 {{ Math.floor(download.progress * 100) }}%</span
>
<span v-else-if="download.status === 'installing'"
>安装中...</span
@@ -104,7 +104,7 @@
>
<div
class="h-full rounded-full bg-brand"
:style="{ width: `${download.progress}%` }"
:style="{ width: `${download.progress * 100}%` }"
></div>
</div>
</div>