We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa3c75a commit 7f42c75Copy full SHA for 7f42c75
adminforth/spa/src/utils.ts
@@ -30,6 +30,7 @@ export async function callApi({path, method, body=undefined}: {
30
const r = await fetch(fullPath, options);
31
if (r.status == 401 ) {
32
useUserStore().unauthorize();
33
+ useCoreStore().resetAdminUser();
34
await router.push({ name: 'login' });
35
return null;
36
}
0 commit comments