Optimize API calls, added form loading logs
This commit is contained in:
7
client/stores/auth.js
vendored
7
client/stores/auth.js
vendored
@@ -75,11 +75,8 @@ export const useAuthStore = defineStore('auth', {
|
||||
// })
|
||||
},
|
||||
|
||||
async logout() {
|
||||
try {
|
||||
await useOpnApi('logout', {method: 'POST'})
|
||||
} catch (e) {
|
||||
}
|
||||
logout() {
|
||||
opnFetch('logout', {method: 'POST'}).catch((error) => {})
|
||||
|
||||
this.user = null
|
||||
this.setToken(null)
|
||||
|
||||
Reference in New Issue
Block a user