Explorar o código

avatar add headers

RuoYi hai 1 ano
pai
achega
68ef1297cb
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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
 }