diff --git a/src/stores/customer/index.ts b/src/stores/customer/index.ts index 74522134..dd3f0bc2 100644 --- a/src/stores/customer/index.ts +++ b/src/stores/customer/index.ts @@ -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), })