fix: wrong method

This commit is contained in:
Methapon2001 2023-12-11 10:10:45 +07:00
parent 506a65f27a
commit 52cbf57613
No known key found for this signature in database
GPG key ID: 849924FEF46BD132

View file

@ -317,7 +317,7 @@ const useStorage = defineStore('storageStore', () => {
if (arr.length < 4) return // the system only allow file to live in level 3 and 4
loader.show()
await api.patch(
await api.delete(
constructUrl(arr.slice(0, -1), false) + `/file/${arr[arr.length - 1]}`,
)
loader.hide()