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 });
|
||||
}),
|
||||
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),
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue