|
|
@@ -244,7 +244,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
updateAvatar(avatar) {
|
|
|
- const data = { id: this.user.info.userId, avatar }
|
|
|
+ const data = {
|
|
|
+ id: this.user.info.userId,
|
|
|
+ deptId: this.user.info.deptId,
|
|
|
+ avatar
|
|
|
+ }
|
|
|
this.$api.dash.updateAvatar(data).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.$message.success(res.msg)
|