调整微信小程序的报错。

This commit is contained in:
cst61
2026-02-01 09:49:48 +08:00
parent cc01c4dc47
commit 802ffbb2f3
454 changed files with 62476 additions and 45 deletions

View File

@@ -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: {

View File

@@ -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)

View File

@@ -63,7 +63,7 @@ export default {
},
computed: {
userInfo () {
return store.userInfo
return store.userInfo || {}
}
},
onReady() {

View File

@@ -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) {