修复店务预约与小程序生产问题
This commit is contained in:
@@ -109,8 +109,19 @@ function uploadProfileImage(filePath) {
|
||||
})
|
||||
}
|
||||
|
||||
function uploadAvatar(filePath) {
|
||||
return uploadFile({
|
||||
url: '/user/upload-avatar',
|
||||
baseUrl: API_DOMAIN,
|
||||
filePath,
|
||||
name: 'file',
|
||||
errorMessage: '头像上传失败'
|
||||
})
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
chooseImageFilePath,
|
||||
uploadObjectFile,
|
||||
uploadAvatar,
|
||||
uploadProfileImage
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user