mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-15 03:25:06 +08:00
vuex统一命名风格
This commit is contained in:
@ -81,7 +81,7 @@ export default {
|
||||
const tempFilePaths = chooseImageRes.tempFilePaths
|
||||
updateAvatar(tempFilePaths[0]).then(res => {
|
||||
this.userInfo.avatar = res.data
|
||||
this.$store.commit('setUserInfo', this.userInfo)
|
||||
this.$store.commit('SET_USER_INFO', this.userInfo)
|
||||
})
|
||||
}
|
||||
})
|
||||
@ -90,7 +90,7 @@ export default {
|
||||
updateNickname({ nickname: this.tempName }).then(res => {
|
||||
this.nameEditOn = false;
|
||||
this.userInfo.nickname = this.tempName
|
||||
this.$store.commit('setUserInfo', this.userInfo)
|
||||
this.$store.commit('SET_USER_INFO', this.userInfo)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user