release v2.0.0 #4
|
@ -80,11 +80,11 @@ export const useMainStore = defineStore({
|
|||
|
||||
try {
|
||||
const token = this.session.token;
|
||||
await api.delete(`/auth/${token}`);
|
||||
this.$patch({
|
||||
session: undefined,
|
||||
user: undefined,
|
||||
});
|
||||
await api.delete(`/auth/${token}`);
|
||||
} catch (error) {
|
||||
return false;
|
||||
} finally {
|
||||
|
|
Loading…
Reference in New Issue