This commit is contained in:
bb_pan 2025-04-16 17:44:49 +08:00
parent 2b4ee6800c
commit 42981e127e
1 changed files with 11 additions and 4 deletions

View File

@ -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()
}
},