fix(desktop-update): 修复更新弹窗关闭无效

This commit is contained in:
2977094657
2026-02-18 17:53:49 +08:00
parent 5f3c9d82e5
commit b281d016be
2 changed files with 10 additions and 10 deletions

View File

@@ -11,12 +11,12 @@
<ClientOnly v-if="isDesktopUpdater"> <ClientOnly v-if="isDesktopUpdater">
<DesktopUpdateDialog <DesktopUpdateDialog
:open="desktopUpdate.open" :open="desktopUpdate.open.value"
:info="desktopUpdate.info" :info="desktopUpdate.info.value"
:is-downloading="desktopUpdate.isDownloading" :is-downloading="desktopUpdate.isDownloading.value"
:ready-to-install="desktopUpdate.readyToInstall" :ready-to-install="desktopUpdate.readyToInstall.value"
:progress="desktopUpdate.progress" :progress="desktopUpdate.progress.value"
:error="desktopUpdate.error" :error="desktopUpdate.error.value"
:has-ignore="true" :has-ignore="true"
@close="desktopUpdate.dismiss" @close="desktopUpdate.dismiss"
@update="desktopUpdate.startUpdate" @update="desktopUpdate.startUpdate"

View File

@@ -105,14 +105,14 @@
<button <button
type="button" type="button"
class="text-sm px-3 py-1.5 rounded-md border border-gray-200 bg-white hover:bg-gray-50 disabled:opacity-50" class="text-sm px-3 py-1.5 rounded-md border border-gray-200 bg-white hover:bg-gray-50 disabled:opacity-50"
:disabled="!isDesktopEnv || desktopUpdate.manualCheckLoading" :disabled="!isDesktopEnv || desktopUpdate.manualCheckLoading.value"
@click="onDesktopCheckUpdates" @click="onDesktopCheckUpdates"
> >
{{ desktopUpdate.manualCheckLoading ? '检查中...' : '检查更新' }} {{ desktopUpdate.manualCheckLoading.value ? '检查中...' : '检查更新' }}
</button> </button>
</div> </div>
<div v-if="desktopUpdate.lastCheckMessage" class="text-xs text-gray-600 whitespace-pre-wrap break-words"> <div v-if="desktopUpdate.lastCheckMessage.value" class="text-xs text-gray-600 whitespace-pre-wrap break-words">
{{ desktopUpdate.lastCheckMessage }} {{ desktopUpdate.lastCheckMessage.value }}
</div> </div>
</div> </div>
</div> </div>