From 42981e127ea8760b7d8cc0ed307044d0fa334514 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Wed, 16 Apr 2025 17:44:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login1.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/views/login1.vue b/src/views/login1.vue index 46dca383..2ae8d78b 100644 --- a/src/views/login1.vue +++ b/src/views/login1.vue @@ -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() } },