management/src/app.tsx
@@ -48,7 +48,7 @@ const { location: { pathname } } = history; // 如果没有登录,重定向到 login if (!initialState?.currentUser && location.pathname !== loginPath) { history.push(loginPath); // history.push(loginPath); return } },