RuoYi 1 год назад
Родитель
Сommit
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 105
   return request({
106 106
     url: '/system/user/profile/avatar',
107 107
     method: 'post',
108
+    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
108 109
     data: data
109 110
   })
110 111
 }