fix: 添加header参数修复上传头像的版本兼容问题
This commit is contained in:
parent
43c406cce5
commit
6cc057276b
@ -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,
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user