国际化问题

uat_us
熊飞 2024-02-21 16:44:13 +08:00
parent 8085585cfa
commit e3ffd6d6c9
1 changed files with 8 additions and 2 deletions

View File

@ -180,6 +180,7 @@ export default {
loginType: null,
location: null,
isShow: false,
showCode: false,
Img1
}
},
@ -230,8 +231,11 @@ export default {
this.loginType = this.$route.query.loginType
this.$refs.loginForm.validate(valid => {
if (valid) {
if (this.showCode) {
this.isShow = true
// this.onSuccess()
} else {
this.onSuccess()
}
} else {
// console.log('error submit!!')
return false
@ -240,6 +244,7 @@ export default {
},
loginIn() {
this.loading = true
this.showCode = false
this.$store.dispatch('user/login', this.loginForm).then((res) => {
if (!res) {
// ,
@ -274,6 +279,7 @@ export default {
})
})
.catch(() => {
this.showCode = true
this.loading = false
})
},