Skip to content

Commit 7f42c75

Browse files
committed
fix: remove sidebar on login page after removing or expiring cookie
1 parent fa3c75a commit 7f42c75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

adminforth/spa/src/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export async function callApi({path, method, body=undefined}: {
3030
const r = await fetch(fullPath, options);
3131
if (r.status == 401 ) {
3232
useUserStore().unauthorize();
33+
useCoreStore().resetAdminUser();
3334
await router.push({ name: 'login' });
3435
return null;
3536
}

0 commit comments

Comments
 (0)