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(() => {