调整微信小程序的报错。
This commit is contained in:
@@ -52,13 +52,13 @@
|
||||
},
|
||||
computed: {
|
||||
hasLogin() {
|
||||
return store.hasLogin
|
||||
return store.hasLogin || false
|
||||
},
|
||||
userInfo() {
|
||||
return store.userInfo
|
||||
return store.userInfo || {}
|
||||
},
|
||||
avatar_file() {
|
||||
return store.userInfo.avatar_file
|
||||
return (store.userInfo || {}).avatar_file
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -65,7 +65,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
userInfo() {
|
||||
return store.userInfo
|
||||
return store.userInfo || {}
|
||||
},
|
||||
certifyIdNext() {
|
||||
return Boolean(this.realName) && Boolean(this.idCard) && (this.needAgreements && this.agree)
|
||||
|
||||
@@ -63,7 +63,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
userInfo () {
|
||||
return store.userInfo
|
||||
return store.userInfo || {}
|
||||
}
|
||||
},
|
||||
onReady() {
|
||||
|
||||
@@ -45,7 +45,7 @@ const uniIdCo = uniCloud.importObject("uni-id-co")
|
||||
export default {
|
||||
computed: {
|
||||
userInfo() {
|
||||
return store.userInfo
|
||||
return store.userInfo || {}
|
||||
},
|
||||
realNameStatus () {
|
||||
if (!this.userInfo.realNameAuth) {
|
||||
|
||||
Reference in New Issue
Block a user