退出登录、修改个人头像

This commit is contained in:
sfmind
2022-04-21 00:01:24 +08:00
parent 5e19beee53
commit 713817d0f1
4 changed files with 114 additions and 21 deletions

View File

@ -71,7 +71,9 @@ export default {
]
}
},
onLoad() {},
onLoad() {
this.$store.dispatch('obtainUserInfo')
},
methods: {
loginOrJump(pageUrl) {
if (!this.hasLogin) {
@ -87,7 +89,7 @@ export default {
success: res => {
if (res.confirm) {
console.log('用户点击确定')
this.$store.commit('logout')
this.$store.dispatch('logout')
} else if (res.cancel) {
console.log('用户点击取消')
}