fix some bugs

This commit is contained in:
2026-06-27 13:49:00 +03:30
parent c3b47e33e1
commit 4d004c3515
13 changed files with 331 additions and 57 deletions
@@ -73,6 +73,8 @@ async function checkRemoteVersion() {
}
async function startUpdate(version: string) {
const configBackup = window.__APP_CONFIG__
try {
isUpdating.value = true
hasError.value = false
@@ -95,6 +97,11 @@ async function startUpdate(version: string) {
} catch (error) {
console.error('Version update failed:', error)
if (configBackup) {
window.__APP_CONFIG__ = configBackup
setAppConfig(configBackup)
}
cancelVersionUpdateLock()
isUpdating.value = false