nginx忘记加\了
Change-Id: I56175dd049b80688975bed17b488e1cb97021a1c
diff --git a/src/pages/Torrent/torrentDetail.tsx b/src/pages/Torrent/torrentDetail.tsx
index a5262fc..7e194a9 100644
--- a/src/pages/Torrent/torrentDetail.tsx
+++ b/src/pages/Torrent/torrentDetail.tsx
@@ -73,6 +73,7 @@
};
const getCategoryName = (catId: number) => {
+ console.log('categories', catId, categories);
return categories.find((c) => c.id === catId)?.name || '未知分类';
};
@@ -276,7 +277,7 @@
{torrent?.title}
</h1>
<div style={{ marginBottom: 8 }}>
- <Tag color="geekblue">{getCategoryName(torrent?.categoryId)}</Tag>
+ <Tag color="geekblue">{getCategoryName(torrent?.category)}</Tag>
{torrent?.tags?.map((tag: string) => (
<Tag key={tag} color="blue">{tag}</Tag>
))}
@@ -382,13 +383,6 @@
// </div>
// ) : (
// <>
-
-
-
-
-
-
-
// <Card
// style={{
// marginTop: 32,