Commit 016284d8 by zhanghaozhe

智能选课

parent 13e92cea
......@@ -11,7 +11,6 @@ const PrivateRoute = ({component: Component, path, user, ...rest}) => {
const [authenticated, setAuthorization] = useState(false)
useEffect(() => {
console.log(user.hasError)
let _auth = !user.hasError && user.code != 4040
typeof _auth !== 'undefined' && (setAuthorization(_auth) , setLoadingState(false))
}, [user.hasError])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment