Commit f5161cb7 by zhanghaozhe

验证码登录

parent 2cc7ff86
......@@ -3,7 +3,7 @@ import { Route, Switch, Redirect } from 'react-router-dom'
import './passport.scss'
import { WithFullSize } from '@/HOCs'
import WechatLogin from './wechatLogin'
import Login from './login'
import AccountLogin from './accountLogin'
import ForgotPassword from './forgotPassword'
import SetPassword from './setPassword'
......@@ -50,10 +50,10 @@ class Passport extends Component {
<Switch>
<Redirect exact
from={'/passport'}
to={{...location, ...{pathname: '/passport/wechat-login'}}}
to={{...location, ...{pathname: '/passport/login'}}}
/>
<Route path={match.url + '/wechat-login'}
render={props => <WechatLogin {...props} loginWays={this.state.loginWays}/>}/>
<Route path={match.url + '/login'}
render={props => <Login {...props} loginWays={this.state.loginWays}/>}/>
<Route path={match.url + '/account-login'} component={AccountLogin}/>
<Route path={match.url + '/forgot-password'} component={ForgotPassword}/>
<Route path={match.url + '/set-password'} component={SetPassword}/>
......
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