Cleaner logout.

This commit is contained in:
2025-09-03 07:11:25 +00:00
parent 09b9894407
commit f28e69a9ce
+1 -2
View File
@@ -130,8 +130,7 @@ export const useAuthStore = defineStore('auth', {
async logout() {
try {
await fetch('/auth/api/logout', {method: 'POST'})
this.userInfo = null
if (this.restrictedMode) location.reload()
location.reload()
} catch (error) {
console.error('Logout error:', error)
this.showMessage(error.message, 'error')