瀏覽代碼

report time

scorpio 2 年之前
父節點
當前提交
3deb780ad2
共有 1 個文件被更改,包括 5 次插入1 次删除
  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)