去掉islogin检查

This commit is contained in:
sxu 2025-04-16 16:21:08 +08:00
parent 1051c682d3
commit caa05df2e5
1 changed files with 19 additions and 18 deletions

View File

@ -282,24 +282,25 @@ export default {
this.loading = true this.loading = true
let that = this let that = this
this.loginForm.loginMethod = this.loginMethod this.loginForm.loginMethod = this.loginMethod
this.$store.dispatch('IsLogin', this.loginForm)
.then(res => {
if (res.data) {
this.$modal.confirm('账号已在其他地方登录是否继续登录!!!!').then(function() {
return that.handleLogin()
}).then(() => {
this.loading = false
}).catch(() => {
this.loading = false
})
} else {
that.handleLogin() that.handleLogin()
} // this.$store.dispatch('IsLogin', this.loginForm)
}) // .then(res => {
.catch(() => { // if (res.data) {
this.loading = false // this.$modal.confirm('').then(function() {
if (this.captchaEnabled) this.getCode() // return that.handleLogin()
}) // }).then(() => {
// this.loading = false
// }).catch(() => {
// this.loading = false
// })
// } else {
// that.handleLogin()
// }
// })
// .catch(() => {
// this.loading = false
// if (this.captchaEnabled) this.getCode()
// })
} }
}) })
}, },