Commit f8861e99 by zhanghaozhe

添加本地代理服务器cookie设置,privateRoute,登录相关redux逻辑

parent f289fea0
...@@ -5,7 +5,6 @@ import jsCookie from 'js-cookie' ...@@ -5,7 +5,6 @@ import jsCookie from 'js-cookie'
const PrivateRoute = ({component: Component, path, user, ...rest}) => { const PrivateRoute = ({component: Component, path, user, ...rest}) => {
// let authenticated = Object.keys(user.data).some(item => !!user.data[item])
let authenticated = jsCookie.get('token') && jsCookie.get('uid') let authenticated = jsCookie.get('token') && jsCookie.get('uid')
return ( return (
<Route {...rest} render={props => { <Route {...rest} render={props => {
......
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