diff --git a/pages/my/my.vue b/pages/my/my.vue index 191108d..8e46126 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -70,8 +70,7 @@ tabBarVue, VNavigationBar }, - - onLoad(data) { + onShow(data) { this.getServer() }, data() { @@ -109,13 +108,8 @@ params:{} }) this.customInfo = res.data - uni.setStorageSync('customerInfo', JSON.stringify(this.customInfo)) - // JSON.parse(JSON.stringify(files)) - // const a = uni.getStorageSync('customerInfo') - // console.log(JSON.parse(a),115) - - - } + uni.setStorageSync('customerInfo', JSON.stringify(this.customInfo)) + } } }