🐛 Fix(custom): fix the download progress issue

This commit is contained in:
Kuingsmile
2026-02-02 12:22:03 +08:00
parent 859111eaa4
commit b0eddbc92f
3 changed files with 3 additions and 1 deletions

View File

@@ -12,7 +12,7 @@
</p>
</header>
<div v-if="updateInfo.type !== 'downloading' && downloadProgress !== null" class="bg-accent-hover/5 p-6">
<div v-if="updateInfo.type === 'downloading' && downloadProgress !== null" class="bg-accent-hover/5 p-6">
<div class="mb-3 flex items-center justify-between">
<span class="text-sm font-semibold text-main">{{ $t('pages.update.downloading') }}</span>
<span class="text-sm font-semibold text-main tabular-nums">{{ Math.round(downloadProgress) }}%</span>