refactor: edit api image
This commit is contained in:
parent
8939c3d058
commit
9bf3da6963
1 changed files with 2 additions and 2 deletions
|
|
@ -207,8 +207,8 @@ const useCustomerStore = defineStore('api-customer', () => {
|
||||||
return await addBranchAttachment(v.id, { file: fileList });
|
return await addBranchAttachment(v.id, { file: fileList });
|
||||||
}),
|
}),
|
||||||
image &&
|
image &&
|
||||||
(await axios
|
(await api
|
||||||
.put(res.data.imageUploadUrl, image, {
|
.put(`/customer/${res.data.id}/image`, image, {
|
||||||
headers: { 'Content-Type': image?.type },
|
headers: { 'Content-Type': image?.type },
|
||||||
onUploadProgress: (e) => console.log(e),
|
onUploadProgress: (e) => console.log(e),
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue