Remove redirect on clearMe function in auth store

This commit is contained in:
2026-03-01 01:37:19 +08:00
parent ac958a2a68
commit 2d90ace92e
2 changed files with 0 additions and 2812 deletions

2811
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -56,7 +56,6 @@ export const useLayoutStore = create<LayoutStore>((set, get) => ({
setMe: (me) => set({ me }), setMe: (me) => set({ me }),
clearMe: () => { clearMe: () => {
set({ me: undefined, isAdmin: false }); set({ me: undefined, isAdmin: false });
window.location.href = '/root/login/?redirect=' + encodeURIComponent(window.location.href);
}, },
getMe: async () => { getMe: async () => {
const res = await queryLogin.getMe(); const res = await queryLogin.getMe();