diff --git a/src/app.wpy b/src/app.wpy index 43cb89f..6e1b328 100644 --- a/src/app.wpy +++ b/src/app.wpy @@ -133,6 +133,11 @@ export default class extends wepy.app { } } getUserInfo() { + if (!this.globalData.userInfo) { + if (wepy.getStorageSync('userInfo')) { + this.globalData.userInfo = JSON.parse(wepy.getStorageSync('userInfo')); + } + } return this.globalData.userInfo } checkAuthorize() {