Commit 016284d8 by zhanghaozhe

智能选课

parent 13e92cea
...@@ -11,7 +11,6 @@ const PrivateRoute = ({component: Component, path, user, ...rest}) => { ...@@ -11,7 +11,6 @@ const PrivateRoute = ({component: Component, path, user, ...rest}) => {
const [authenticated, setAuthorization] = useState(false) const [authenticated, setAuthorization] = useState(false)
useEffect(() => { useEffect(() => {
console.log(user.hasError)
let _auth = !user.hasError && user.code != 4040 let _auth = !user.hasError && user.code != 4040
typeof _auth !== 'undefined' && (setAuthorization(_auth) , setLoadingState(false)) typeof _auth !== 'undefined' && (setAuthorization(_auth) , setLoadingState(false))
}, [user.hasError]) }, [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