国际化问题
parent
8085585cfa
commit
e3ffd6d6c9
|
@ -180,6 +180,7 @@ export default {
|
||||||
loginType: null,
|
loginType: null,
|
||||||
location: null,
|
location: null,
|
||||||
isShow: false,
|
isShow: false,
|
||||||
|
showCode: false,
|
||||||
Img1
|
Img1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -230,8 +231,11 @@ export default {
|
||||||
this.loginType = this.$route.query.loginType
|
this.loginType = this.$route.query.loginType
|
||||||
this.$refs.loginForm.validate(valid => {
|
this.$refs.loginForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.isShow = true
|
if (this.showCode) {
|
||||||
// this.onSuccess()
|
this.isShow = true
|
||||||
|
} else {
|
||||||
|
this.onSuccess()
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// console.log('error submit!!')
|
// console.log('error submit!!')
|
||||||
return false
|
return false
|
||||||
|
@ -240,6 +244,7 @@ export default {
|
||||||
},
|
},
|
||||||
loginIn() {
|
loginIn() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
this.showCode = false
|
||||||
this.$store.dispatch('user/login', this.loginForm).then((res) => {
|
this.$store.dispatch('user/login', this.loginForm).then((res) => {
|
||||||
if (!res) {
|
if (!res) {
|
||||||
// 当前用户为首次登录,请先修改密码之后再次登录
|
// 当前用户为首次登录,请先修改密码之后再次登录
|
||||||
|
@ -274,6 +279,7 @@ export default {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
|
this.showCode = true
|
||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue