diff --git a/components/tab-bar/myCenter.vue b/components/tab-bar/myCenter.vue index 2f22f5e..bad47ef 100644 --- a/components/tab-bar/myCenter.vue +++ b/components/tab-bar/myCenter.vue @@ -98,9 +98,9 @@ }, methods: { init(){ - this.shopName = uni.getStorageSync('shopName'); - this.shopIcon = uni.getStorageSync('shopIcon'); - this.region = uni.getStorageSync('shop').region; + this.shopName = JSON.parse(uni.getStorageSync('area')).shop.shopName; + this.shopIcon = JSON.parse(uni.getStorageSync('area')).shop.shopIcon; + this.region = JSON.parse(uni.getStorageSync('area')).shop.region; // 获取所有 key const { keys } = uni.getStorageInfoSync(); const data = {};