Browse Source

mine bug

devlop
邓雄飞 4 years ago
parent
commit
d7877d4567
1 changed files with 8 additions and 6 deletions
  1. 14
      pages/mine/index.vue

14
pages/mine/index.vue

@ -157,12 +157,6 @@ export default {
components: { qnDataPicker }, components: { qnDataPicker },
data() { data() {
return { return {
userInfo: {
avatar: this.$store.state.userInfo.avatar || '',
name: this.$store.state.userInfo.name || '',
supplierName: this.$store.state.supplierInfo.name || '',
fddEnterpriseStatus: this.$store.state.supplierInfo.fddEnterpriseStatus || 1
},
fddStatus: Object.freeze(fddEnterpriseStatus), fddStatus: Object.freeze(fddEnterpriseStatus),
messageNum: 0, messageNum: 0,
companyNum: 0, companyNum: 0,
@ -266,6 +260,14 @@ export default {
} else { } else {
return '/static/imgs/mine/default-avatar.png' return '/static/imgs/mine/default-avatar.png'
} }
},
userInfo() {
return {
avatar: this.$store.state.userInfo.avatar || '',
name: this.$store.state.userInfo.name || this.$store.state.userInfo.mobile || '',
supplierName: this.$store.state.supplierInfo.name || '',
fddEnterpriseStatus: this.$store.state.supplierInfo.fddEnterpriseStatus || 1
}
} }
}, },
onShow() { onShow() {

Loading…
Cancel
Save