diff --git a/pages/index/index.vue b/pages/index/index.vue index 9dd3d4a..ab97114 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -83,6 +83,13 @@ lineList: [] } }, + onLoad(option) { + if(option.token) { + this.Post({}, '/api/user/getUserDetails').then(res => { + this.$store.commit('changeUserInfo', res.data) + }) + } + }, onReady() { this.getTopBanner() this.getLineList() diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html index 0798f41..08b84ea 100644 --- a/unpackage/dist/build/web/index.html +++ b/unpackage/dist/build/web/index.html @@ -1,2 +1,2 @@