fix: lint errors again

This commit is contained in:
Feng Yue
2025-08-13 13:23:10 +08:00
parent f193db926d
commit 56e4630827
3 changed files with 17 additions and 13 deletions

View File

@@ -52,9 +52,13 @@ export const useUserStore = defineStore('user', {
async logout() {
try {
if (this.sessionToken) {
await axios.post(`${API_BASE}/logout`, {}, {
await axios.post(
`${API_BASE}/logout`,
{},
{
headers: { 'x-user-token': this.sessionToken }
})
}
)
}
} catch (error) {
console.error('Logout request failed:', error)