scorpio hace 2 años
padre
commit
3deb780ad2
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  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)