fix some bugs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user