release: bump version to 0.71.1
Some checks failed
ci / backend (push) Has been cancelled
ci / frontend (push) Has been cancelled
release / images (push) Has been cancelled
ci / delivery (push) Has been cancelled

This commit is contained in:
linkong
2026-06-26 17:34:19 +08:00
parent 899e3bce43
commit 3265d22af5
26 changed files with 1052 additions and 71 deletions

View File

@@ -37,17 +37,14 @@ export const useAuthStore = create<AuthState>()(
const { access_token, user } = response.data
set({ token: access_token, user })
axios.defaults.headers.common['Authorization'] = `Bearer ${access_token}`
console.log('[Auth] Logged in, token:', access_token.substring(0, 30) + '...')
},
logout() {
console.log('[Auth] Logging out...')
set({ token: null, user: null })
delete axios.defaults.headers.common['Authorization']
},
clearAuth() {
console.log('[Auth] Clearing all auth data...')
set({ token: null, user: null })
localStorage.removeItem('auth-storage')
delete axios.defaults.headers.common['Authorization']