This commit is contained in:
2026-03-05 14:47:02 +08:00
parent 89d3487c02
commit ab645588ac
12 changed files with 135 additions and 78 deletions

View File

@@ -230,19 +230,19 @@ const handleGoToConfig = async () => {
}
const handleLogout = async () => {
if (isElectron()) {
await window.electronAPI.logout()
}
try {
await window.electronAPI.hideViews()
await handleStopAll()
} catch (e) {
console.warn('[App] 清理视图失败:', e)
}
stopHealthCheck()
currentPage.value = 'login'
localStorage.removeItem(USER_KEY)
// currentPage.value = 'login'
if (isElectron()) {
try { await window.electronAPI.logout() } catch (e) { console.warn('[App] logout失败:', e) }
try {
await window.electronAPI.hideViews()
await handleStopAll()
} catch (e) {
console.warn('[App] 清理视图失败:', e)
}
}
}
const handleStopAll = async () => {