scorpio 2 lat temu
rodzic
commit
3deb780ad2
1 zmienionych plików z 5 dodań i 1 usunięć
  1. 5 1
      src/views/dash/compoents/profile.vue

+ 5 - 1
src/views/dash/compoents/profile.vue

@@ -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)