fix: Fix route name to get better format

Change route from `auth/changepassword` to `auth/change-password`

Change-Id: I5daff7da387be212d380d0d7b844086c912f005e
This commit is contained in:
xusongfu 2021-07-05 10:27:01 +08:00 committed by hanxiang gao
parent c960f06c1a
commit bec7b84845
2 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ export default class Login extends Component {
userId, userId,
}; };
this.rootStore.setPasswordInfo(data); this.rootStore.setPasswordInfo(data);
this.rootStore.routing.push('/auth/changepassword'); this.rootStore.routing.push('/auth/change-password');
} else { } else {
this.setState({ this.setState({
error: true, error: true,

View File

@ -24,7 +24,7 @@ export default [
routes: [ routes: [
{ path: `${PATH}/login`, component: Login, exact: true }, { path: `${PATH}/login`, component: Login, exact: true },
{ {
path: `${PATH}/changepassword`, path: `${PATH}/change-password`,
component: ChangePassword, component: ChangePassword,
exact: true, exact: true,
}, },