Skip to content

Commit

Permalink
fix(SPA): 修复注册设置无时注册页面报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Dec 20, 2018
1 parent dc617b2 commit 6fb431b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions resources/spa/src/page/sign/Signup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand All @@ -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后重发` : '获取验证码'
Expand Down

0 comments on commit 6fb431b

Please sign in to comment.