fix downloading api

This commit is contained in:
jxxghp
2023-08-18 17:24:25 +08:00
parent 43f76fbf62
commit 61bdf6e30c

View File

@@ -40,8 +40,8 @@ function getTextClass() {
async function toggleDownload() {
const operation = isDownloading.value ? 'stop' : 'start'
try {
const result: { [key: string]: any } = await api.put(
`download/${props.info?.hash}/${operation}`,
const result: { [key: string]: any } = await api.get(
`download/${operation}/${props.info?.hash}`,
)
if (result.success)