fix :updateFile status 200
This commit is contained in:
parent
3ae9de0538
commit
7d1d309555
1 changed files with 1 additions and 1 deletions
|
|
@ -470,7 +470,7 @@ const useStorage = defineStore('storageStore', () => {
|
|||
upload: !!file,
|
||||
},
|
||||
)
|
||||
if (res && res.status === 204 && res.data && res.data.uploadUrl) {
|
||||
if (res && res.status === 200 && res.data && res.data.uploadUrl) {
|
||||
await axios
|
||||
.put(res.data.uploadUrl, file, {
|
||||
headers: { 'Content-Type': file?.type },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue