把未认证状态的路由'/user'->'/user/login'

master
GPU is all you need 4 years ago
parent 10642e8e43
commit 93317fb8b9
  1. 2
      awardFE/src/pages/Authorized.tsx

@ -24,7 +24,7 @@ const AuthComponent: React.FC<AuthComponentProps> = ({
// 未登录态跳转到登录页面
if (!isLogin && localStorage.getItem('USER_LOGIN') != "true") {
history.push('/user/ ');
history.push('/user/login');
}
return (

Loading…
Cancel
Save