refactor: cropper

This commit is contained in:
xingyu
2022-12-21 16:10:28 +08:00
parent 0f562e59c2
commit 91abae8898
13 changed files with 686 additions and 276 deletions

View File

@ -44,7 +44,7 @@ export default {
},
upload: async <T = any>(option: any) => {
option.headersType = 'multipart/form-data'
const res = await request({ method: 'PUT', ...option })
const res = await request({ method: 'POST', ...option })
return res as unknown as Promise<T>
}
}