RuoYi пре 1 година
родитељ
комит
68ef1297cb
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      ruoyi-ui/src/api/system/user.js

+ 1 - 0
ruoyi-ui/src/api/system/user.js

@@ -105,6 +105,7 @@ export function uploadAvatar(data) {
105
   return request({
105
   return request({
106
     url: '/system/user/profile/avatar',
106
     url: '/system/user/profile/avatar',
107
     method: 'post',
107
     method: 'post',
108
+    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
108
     data: data
109
     data: data
109
   })
110
   })
110
 }
111
 }