🐛 fix头像、文章资源上传失败

This commit is contained in:
不做码农
2023-07-05 20:28:45 +08:00
parent 032d88c996
commit d95fdf0021
3 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ export function upload(data) {
url: '/common/UploadFile',
method: 'POST',
data: data,
headers: { "Content-Type": "multipart/form-data" },
headers: { 'Content-Type': 'multipart/form-data' }
})
}
@@ -18,6 +18,6 @@ export function sendEmail(data) {
return request({
url: '/common/SendEmail',
method: 'POST',
data: data,
data: data
})
}
+2 -1
View File
@@ -116,7 +116,8 @@ export function uploadAvatar(data) {
return request({
url: '/system/user/profile/avatar',
method: 'post',
data: data
data: data,
headers: { 'Content-Type': 'multipart/form-data' }
})
}