This commit is contained in:
parent
2b4ee6800c
commit
42981e127e
|
|
@ -201,7 +201,7 @@ export default {
|
|||
verificationCode: [{ required: true, trigger: 'blur', message: '请输入验证码' }]
|
||||
},
|
||||
loading: false,
|
||||
captchaEnabled: true,
|
||||
captchaEnabled: false,
|
||||
redirect: undefined,
|
||||
isSendingCode: false,
|
||||
countdown: 0,
|
||||
|
|
@ -212,8 +212,16 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
config() {
|
||||
console.log('🚀 ~ config ~ config:', localStorage.getItem('systemConfig'))
|
||||
let systemConfig = null
|
||||
try {
|
||||
systemConfig = JSON.parse(localStorage.getItem('systemConfig'))
|
||||
console.log('🚀 ~ config ~ systemConfig:', systemConfig)
|
||||
} catch (err) {
|
||||
console.log('获取config失败:', err)
|
||||
}
|
||||
return (
|
||||
JSON.parse(localStorage.getItem('systemConfig')) || {
|
||||
systemConfig || {
|
||||
loginConfig: {
|
||||
phonePassword: true,
|
||||
emailPassword: true,
|
||||
|
|
@ -225,7 +233,7 @@ export default {
|
|||
emailRegisters: true
|
||||
}
|
||||
}
|
||||
) // 获取 JSON 对象
|
||||
)
|
||||
},
|
||||
loginRules() {
|
||||
return this.loginMethod === 'password' ? this.passwordLoginRules : this.mobileLoginRules
|
||||
|
|
@ -285,7 +293,6 @@ export default {
|
|||
}
|
||||
} else {
|
||||
this.isIws = false
|
||||
this.getCode()
|
||||
this.getCookie()
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue