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: '请输入验证码' }] verificationCode: [{ required: true, trigger: 'blur', message: '请输入验证码' }]
}, },
loading: false, loading: false,
captchaEnabled: true, captchaEnabled: false,
redirect: undefined, redirect: undefined,
isSendingCode: false, isSendingCode: false,
countdown: 0, countdown: 0,
@ -212,8 +212,16 @@ export default {
}, },
computed: { computed: {
config() { 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 ( return (
JSON.parse(localStorage.getItem('systemConfig')) || { systemConfig || {
loginConfig: { loginConfig: {
phonePassword: true, phonePassword: true,
emailPassword: true, emailPassword: true,
@ -225,7 +233,7 @@ export default {
emailRegisters: true emailRegisters: true
} }
} }
) // JSON )
}, },
loginRules() { loginRules() {
return this.loginMethod === 'password' ? this.passwordLoginRules : this.mobileLoginRules return this.loginMethod === 'password' ? this.passwordLoginRules : this.mobileLoginRules
@ -285,7 +293,6 @@ export default {
} }
} else { } else {
this.isIws = false this.isIws = false
this.getCode()
this.getCookie() this.getCookie()
} }
}, },