From bec7b84845f53ba53632cd9c586274eda150c691 Mon Sep 17 00:00:00 2001 From: xusongfu Date: Mon, 5 Jul 2021 10:27:01 +0800 Subject: [PATCH] fix: Fix route name to get better format Change route from `auth/changepassword` to `auth/change-password` Change-Id: I5daff7da387be212d380d0d7b844086c912f005e --- src/pages/auth/containers/Login/index.jsx | 2 +- src/pages/auth/routes/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/auth/containers/Login/index.jsx b/src/pages/auth/containers/Login/index.jsx index bf502d00..f318428e 100644 --- a/src/pages/auth/containers/Login/index.jsx +++ b/src/pages/auth/containers/Login/index.jsx @@ -221,7 +221,7 @@ export default class Login extends Component { userId, }; this.rootStore.setPasswordInfo(data); - this.rootStore.routing.push('/auth/changepassword'); + this.rootStore.routing.push('/auth/change-password'); } else { this.setState({ error: true, diff --git a/src/pages/auth/routes/index.js b/src/pages/auth/routes/index.js index 13d52b2d..ad2150f6 100644 --- a/src/pages/auth/routes/index.js +++ b/src/pages/auth/routes/index.js @@ -24,7 +24,7 @@ export default [ routes: [ { path: `${PATH}/login`, component: Login, exact: true }, { - path: `${PATH}/changepassword`, + path: `${PATH}/change-password`, component: ChangePassword, exact: true, },