杨阁辉 4 years ago
parent
commit
f555f8ab8b
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 },
data() {
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),
messageNum: 0,
companyNum: 0,
@ -266,6 +260,14 @@ export default {
} else {
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() {

Loading…
Cancel
Save