mirror of
https://github.com/rommapp/romm.git
synced 2026-12-06 07:54:18 +01:00
fix logout
This commit is contained in:
3 files changed
+5
-9
No files matched your search
@@ -36,14 +36,14 @@ async function logout() {
|
||||
color: "green",
|
||||
});
|
||||
|
||||
// Redirect to login page
|
||||
await router.push({ name: ROUTES.LOGIN });
|
||||
|
||||
// Clear all pinia stores
|
||||
// @ts-expect-error(2339)
|
||||
getActivePinia()?._s.forEach((store: StateTree) => {
|
||||
store.reset?.();
|
||||
});
|
||||
|
||||
// Redirect to login page
|
||||
await router.push({ name: ROUTES.LOGIN });
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -58,8 +58,6 @@ export default defineStore("config", {
|
||||
isExclusionType(type: string): type is ExclusionTypes {
|
||||
return Object.keys(this.config).includes(type);
|
||||
},
|
||||
reset() {
|
||||
this.config = defaultConfig;
|
||||
},
|
||||
reset() {},
|
||||
},
|
||||
});
|
||||
@@ -32,8 +32,6 @@ export default defineStore("heartbeat", {
|
||||
},
|
||||
]).value.filter((s) => !s.disabled);
|
||||
},
|
||||
reset() {
|
||||
this.value = {} as HeartbeatResponse;
|
||||
},
|
||||
reset() {},
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user