去除重庆默认密码登录转跳重置密码页

This commit is contained in:
binbin_pan 2024-06-18 11:00:10 +08:00
parent d8c426d527
commit 1667fca06c
1 changed files with 8 additions and 7 deletions

View File

@ -431,13 +431,14 @@ export default {
this.$store
.dispatch('Login', this.loginForm)
.then(() => {
if (localStorage.getItem('isCode') == 1) {
this.$router
.push({ path: '/resetPassword' })
.catch(() => {})
} else {
this.$router.push({ path: '/' }).catch(() => {})
}
// if (localStorage.getItem('isCode') == 1) {
// this.$router
// .push({ path: '/resetPassword' })
// .catch(() => {})
// } else {
// this.$router.push({ path: '/' }).catch(() => {})
// }
this.$router.push({ path: '/' }).catch(() => {})
})
.catch(() => {
this.loading = false