From 2a5a93bdb5e667d78afddc2b051ab0718ce1e66c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=AF=E5=A4=A7=E4=BE=A0?= Date: Thu, 24 Apr 2025 19:43:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9B=B4=E5=A4=9A=E6=9D=A5?= =?UTF-8?q?=E6=BA=90=E4=B8=8D=E8=83=BD=E6=AD=A3=E7=A1=AE=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E7=AB=99=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/cards/TorrentCard.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/cards/TorrentCard.vue b/src/components/cards/TorrentCard.vue index 27e30a6c..da6ee1ef 100644 --- a/src/components/cards/TorrentCard.vue +++ b/src/components/cards/TorrentCard.vue @@ -70,7 +70,11 @@ async function handleAddDownload(item: Context | null = null) { } // 打开种子详情页面 -function openTorrentDetail() { +function openTorrentDetail(item: Context | null = null) { + if (item && !isNullOrEmptyObject(item) && !isNullOrEmptyObject(item.torrent_info)) { + window.open(item.torrent_info.page_url, '_blank') + return + } window.open(torrent.value?.page_url, '_blank') } @@ -255,7 +259,7 @@ onMounted(() => { {{ formatFileSize(torrent.size) }} - + @@ -333,7 +337,7 @@ onMounted(() => {