diff --git a/App.vue b/App.vue index fb72a82..d7b6f99 100644 --- a/App.vue +++ b/App.vue @@ -43,9 +43,7 @@ async getUserInfo() { const res = await this.$api.login.getUserInfo(); if (res.code === 200) { - this.userInfo = res.result; - // 存储用户信息到store - this.$store.dispatch('updateUserInfo', this.userInfo) + this.$store.dispatch('updateUserInfo', this.userInfo) } },