Remove redirect on clearMe function in auth store
This commit is contained in:
2811
pnpm-lock.yaml
generated
2811
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -56,7 +56,6 @@ export const useLayoutStore = create<LayoutStore>((set, get) => ({
|
||||
setMe: (me) => set({ me }),
|
||||
clearMe: () => {
|
||||
set({ me: undefined, isAdmin: false });
|
||||
window.location.href = '/root/login/?redirect=' + encodeURIComponent(window.location.href);
|
||||
},
|
||||
getMe: async () => {
|
||||
const res = await queryLogin.getMe();
|
||||
|
||||
Reference in New Issue
Block a user