diff --git a/pages/index/index.vue b/pages/index/index.vue index ab97114..8e98173 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -85,7 +85,9 @@ }, onLoad(option) { if(option.token) { - this.Post({}, '/api/user/getUserDetails').then(res => { + this.Post({ + token: option.token + }, '/api/user/getUserDetails').then(res => { this.$store.commit('changeUserInfo', res.data) }) } diff --git a/unpackage/dist/build/web/index.html b/unpackage/dist/build/web/index.html index 08b84ea..602522d 100644 --- a/unpackage/dist/build/web/index.html +++ b/unpackage/dist/build/web/index.html @@ -1,2 +1,2 @@