diff --git a/pages/index/index.vue b/pages/index/index.vue index 8d350dd..f7cdf29 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -427,9 +427,11 @@ export default { }, onShow() { this.$store.dispatch('getCarLength') - this.user = uni.getStorageSync('User') - this.getAreaGoods() - this.newShareMember = this.user?.loginType !== 0 + this.$store.dispatch('GetInfo').then(() => { + this.user = uni.getStorageSync('User') + this.getAreaGoods() + this.newShareMember = this.user?.loginType !== 0 + }) }, onPullDownRefresh() { let that = this