refactor: edit api image

This commit is contained in:
Net 2024-08-01 11:27:52 +07:00
parent 8939c3d058
commit 9bf3da6963

View file

@ -207,8 +207,8 @@ const useCustomerStore = defineStore('api-customer', () => {
return await addBranchAttachment(v.id, { file: fileList });
}),
image &&
(await axios
.put(res.data.imageUploadUrl, image, {
(await api
.put(`/customer/${res.data.id}/image`, image, {
headers: { 'Content-Type': image?.type },
onUploadProgress: (e) => console.log(e),
})