2.3.0
This commit is contained in:
22
src/App.vue
22
src/App.vue
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user