Przeglądaj źródła

avatar add headers

RuoYi 1 rok temu
rodzic
commit
68ef1297cb
1 zmienionych plików z 1 dodań i 0 usunięć
  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
 }