فهرست منبع

修改上传头像

ymy 1 سال پیش
والد
کامیت
49ae8d9c68
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  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'
+    }
   })
 }