瀏覽代碼

修改上传头像

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'
+    }
   })
 }