From 6fb431bfa02b11ededac5703a95bde779e65884a Mon Sep 17 00:00:00 2001 From: mutoe Date: Thu, 20 Dec 2018 14:24:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(SPA):=20=E4=BF=AE=E5=A4=8D=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E8=AE=BE=E7=BD=AE=E6=97=A0=E6=97=B6=E6=B3=A8=E5=86=8C?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/spa/src/page/sign/Signup.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/spa/src/page/sign/Signup.vue b/resources/spa/src/page/sign/Signup.vue index c76da951e..2ca8c5383 100644 --- a/resources/spa/src/page/sign/Signup.vue +++ b/resources/spa/src/page/sign/Signup.vue @@ -211,9 +211,12 @@ export default { }, computed: { ...mapState(['CONFIG']), + settings () { + return this.CONFIG.registerSettings || {} + }, allowType () { // mobile-only | mail-only | all - return this.CONFIG.registerSettings.method + return this.settings.method || 'all' }, currentType: { get () { @@ -225,8 +228,7 @@ export default { }, }, showProtocol () { - const registerSettings = this.CONFIG.registerSettings || {} - return registerSettings.showTerms || false + return this.settings.showTerms || false }, codeText () { return this.countdown > 0 ? `${this.countdown}s后重发` : '获取验证码'