fix(01): upload image

This commit is contained in:
puriphatt 2024-08-28 16:33:51 +07:00
parent bda2f0164d
commit 59436725f7
3 changed files with 21 additions and 38 deletions

View file

@ -113,7 +113,7 @@ const useBranchStore = defineStore('api-branch', () => {
if (imageUrl) {
await api
.put(`/branch/${res.data.id}/branch-image`, qrCodeImage, {
.put(`/branch/${res.data.id}/branch-image`, imageUrl, {
headers: { 'Content-Type': imageUrl.type },
onUploadProgress: (e) => console.log(e),
})