feat(web): change login jump address

This commit is contained in:
zhaoying
2026-01-15 20:43:17 +08:00
parent 752f4a84e5
commit c4e6f5113b

View File

@@ -45,7 +45,7 @@ export const useUser = create<UserState>((set, get) => ({
const response = res as User;
set({ user: response })
if (flag) {
window.location.href = response.role && response.current_workspace_id ? '/#/' : '/#/space'
window.location.href = response.role && response.current_workspace_id ? '/#/' : '/#/index'
}
localStorage.setItem('user', JSON.stringify(response))
})