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

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 this.$store
.dispatch('Login', this.loginForm) .dispatch('Login', this.loginForm)
.then(() => { .then(() => {
if (localStorage.getItem('isCode') == 1) { // if (localStorage.getItem('isCode') == 1) {
this.$router // this.$router
.push({ path: '/resetPassword' }) // .push({ path: '/resetPassword' })
.catch(() => {}) // .catch(() => {})
} else { // } else {
this.$router.push({ path: '/' }).catch(() => {}) // this.$router.push({ path: '/' }).catch(() => {})
} // }
this.$router.push({ path: '/' }).catch(() => {})
}) })
.catch(() => { .catch(() => {
this.loading = false this.loading = false