mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 20:41:03 +00:00
fix: lint errors again
This commit is contained in:
@@ -52,9 +52,13 @@ export const useUserStore = defineStore('user', {
|
|||||||
async logout() {
|
async logout() {
|
||||||
try {
|
try {
|
||||||
if (this.sessionToken) {
|
if (this.sessionToken) {
|
||||||
await axios.post(`${API_BASE}/logout`, {}, {
|
await axios.post(
|
||||||
|
`${API_BASE}/logout`,
|
||||||
|
{},
|
||||||
|
{
|
||||||
headers: { 'x-user-token': this.sessionToken }
|
headers: { 'x-user-token': this.sessionToken }
|
||||||
})
|
}
|
||||||
|
)
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Logout request failed:', error)
|
console.error('Logout request failed:', error)
|
||||||
|
|||||||
Reference in New Issue
Block a user