Commit 9765af18 by zhanghaozhe

test

parent 44200bc1
...@@ -2,7 +2,7 @@ import React from 'react'; ...@@ -2,7 +2,7 @@ import React from 'react';
import { Route } from "react-router-dom"; import { Route } from "react-router-dom";
import { connect } from "react-redux"; import { connect } from "react-redux";
import jsCookie from 'js-cookie' import jsCookie from 'js-cookie'
import Loading from './route-middle-page' import RouteMiddlePage from './route-middle-page'
const PrivateRoute = ({component: Component, path, user, ...rest}) => { const PrivateRoute = ({component: Component, path, user, ...rest}) => {
...@@ -13,7 +13,7 @@ const PrivateRoute = ({component: Component, path, user, ...rest}) => { ...@@ -13,7 +13,7 @@ const PrivateRoute = ({component: Component, path, user, ...rest}) => {
<Route {...rest} render={props => { <Route {...rest} render={props => {
return authenticated return authenticated
? <Component {...props}/> ? <Component {...props}/>
: <Loading state={{from: props.location}}/> : <RouteMiddlePage state={{from: props.location}}/>
}}/> }}/>
); );
}; };
......
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