作者 RuoYi

avatar add headers

@@ -105,6 +105,7 @@ export function uploadAvatar(data) { @@ -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 }