|
|
@@ -15,7 +15,7 @@ export const ProtectedRoute = ({ children }: { children: React.ReactNode }) => {
|
|
|
useEffect(() => {
|
|
|
// 只有在加载完成且未认证时才重定向
|
|
|
if (!isLoading && !isAuthenticated) {
|
|
|
- navigate('/admin/login', { replace: true });
|
|
|
+ navigate('/mobile/login', { replace: true });
|
|
|
}
|
|
|
}, [isAuthenticated, isLoading, navigate]);
|
|
|
|