|
|
@ -43,9 +43,7 @@ |
|
|
async getUserInfo() { |
|
|
async getUserInfo() { |
|
|
const res = await this.$api.login.getUserInfo(); |
|
|
const res = await this.$api.login.getUserInfo(); |
|
|
if (res.code === 200) { |
|
|
if (res.code === 200) { |
|
|
this.userInfo = res.result; |
|
|
|
|
|
// 存储用户信息到store |
|
|
|
|
|
this.$store.dispatch('updateUserInfo', this.userInfo) |
|
|
|
|
|
|
|
|
this.$store.dispatch('updateUserInfo', this.userInfo) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|