fix: 添加header参数修复上传头像的版本兼容问题

This commit is contained in:
valarchie 2023-02-21 21:55:47 +08:00
parent 43c406cce5
commit 6cc057276b

View File

@ -104,6 +104,9 @@ export function updateUserPassword(oldPassword, newPassword) {
export function uploadAvatar(data) {
return request({
url: '/system/user/profile/avatar',
headers: {
'Content-Type': 'multipart/form-data',
},
method: 'post',
data,
});