fix(01): upload image
This commit is contained in:
parent
bda2f0164d
commit
59436725f7
3 changed files with 21 additions and 38 deletions
|
|
@ -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),
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue