优化

Change-Id: I0aaa165219226ad4a22bfb03141dcafe9efdf6c3
diff --git a/src/api/torrent.js b/src/api/torrent.js
index 4a623d7..a6a1663 100644
--- a/src/api/torrent.js
+++ b/src/api/torrent.js
@@ -38,22 +38,16 @@
 

 /**

  * 下载种子文件

- * @param {number} torrentId 种子ID

+ * @param {number} id 种子ID

  * @param {string} downloadPath 下载路径

  */

-export async function downloadTorrent(torrentId, downloadPath) {

-  try {

-    const response = await api.get(`/torrent/downloadTorrent`, {

-      params: {

-        id: torrentId,

-        downloadPath: downloadPath

-      }

-    });

-    return response.data;

-  } catch (error) {

-    console.error('下载种子失败:', error);

-    throw error;

-  }

+export function downloadTorrent(id, downloadPath) {

+  return api.get('/torrent/downloadTorrent', {

+    params: {

+      id,

+      downloadPath

+    }

+  });

 }

 

 /**