登录处理
This commit is contained in:
parent
d635eaa592
commit
d8f3ae3424
|
|
@ -364,15 +364,16 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
IsAdmin() {
|
IsAdmin() {
|
||||||
this.loginForm.loginMethod = this.loginMethod
|
|
||||||
this.$store.dispatch('IsAdmin', this.loginForm).then(res => {
|
|
||||||
if (res.data) {
|
|
||||||
this.isAdmin = res.data
|
|
||||||
this.$message.success('检测到您是超级管理账号,需进行手机检验')
|
|
||||||
} else {
|
|
||||||
this.handleLogin()
|
this.handleLogin()
|
||||||
}
|
// this.loginForm.loginMethod = this.loginMethod
|
||||||
})
|
// this.$store.dispatch('IsAdmin', this.loginForm).then(res => {
|
||||||
|
// if (res.data) {
|
||||||
|
// this.isAdmin = res.data
|
||||||
|
// this.$message.success('检测到您是超级管理账号,需进行手机检验')
|
||||||
|
// } else {
|
||||||
|
// this.handleLogin()
|
||||||
|
// }
|
||||||
|
// })
|
||||||
},
|
},
|
||||||
isLogin() {
|
isLogin() {
|
||||||
this.$refs.loginForm.validate(valid => {
|
this.$refs.loginForm.validate(valid => {
|
||||||
|
|
@ -380,29 +381,30 @@ 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)
|
// this.$store
|
||||||
.then(res => {
|
// .dispatch('IsLogin', this.loginForm)
|
||||||
if (res.data) {
|
// .then(res => {
|
||||||
this.$modal
|
// if (res.data) {
|
||||||
.confirm('账号已在其他地方登录是否继续登录!!!!')
|
// this.$modal
|
||||||
.then(function () {
|
// .confirm('账号已在其他地方登录是否继续登录!!!!')
|
||||||
return that.handleLogin()
|
// .then(function () {
|
||||||
})
|
// return that.handleLogin()
|
||||||
.then(() => {
|
// })
|
||||||
this.loading = false
|
// .then(() => {
|
||||||
})
|
// this.loading = false
|
||||||
.catch(() => {
|
// })
|
||||||
this.loading = false
|
// .catch(() => {
|
||||||
})
|
// this.loading = false
|
||||||
} else {
|
// })
|
||||||
that.handleLogin()
|
// } else {
|
||||||
}
|
// that.handleLogin()
|
||||||
})
|
// }
|
||||||
.catch(() => {
|
// })
|
||||||
this.loading = false
|
// .catch(() => {
|
||||||
if (this.captchaEnabled) this.getCode()
|
// this.loading = false
|
||||||
})
|
// if (this.captchaEnabled) this.getCode()
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue