fix: update not upload file
This commit is contained in:
parent
ec99336bf3
commit
bc3b8f9ca7
1 changed files with 1 additions and 1 deletions
|
|
@ -420,7 +420,7 @@ const useStorage = defineStore('storageStore', () => {
|
|||
constructUrl(arr.slice(0, -1), false) + `/file/${arr[arr.length - 1]}`,
|
||||
{ file: file?.name, ...data },
|
||||
)
|
||||
if (res && res.status === 201 && res.data && res.data.upload) {
|
||||
if (res && res.status === 200 && res.data && res.data.upload) {
|
||||
await axios
|
||||
.put(res.data.upload, file, {
|
||||
headers: { 'Content-Type': file?.type },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue