Explorar o código

修改上传头像

ymy %!s(int64=2) %!d(string=hai) anos
pai
achega
49ae8d9c68
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/api/system/user.ts

+ 4 - 1
src/api/system/user.ts

@@ -105,7 +105,10 @@ export function uploadAvatar(data:any) {
   return request({
     url: '/system/user/profile/avatar',
     method: 'post',
-    data: data
+    data: data,
+    headers:{
+      'Content-Type':'application/x-www-form-urlencoded'
+    }
   })
 }