From 3a7e297fb979dbf7f509d9082bc31799b5633950 Mon Sep 17 00:00:00 2001 From: Innei Date: Sun, 2 Jun 2024 19:40:27 +0800 Subject: [PATCH] fix: xlog summary, closes #24 Signed-off-by: Innei --- src/components/modules/xlog/XLogSummary.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/modules/xlog/XLogSummary.tsx b/src/components/modules/xlog/XLogSummary.tsx index e980628519..59b3bfdfec 100644 --- a/src/components/modules/xlog/XLogSummary.tsx +++ b/src/components/modules/xlog/XLogSummary.tsx @@ -23,7 +23,7 @@ export const XLogSummary: FC = (props) => { }, }).then((res) => res.json()) if (!data) throw new Error('请求错误') - if (!data.data) throw new Error('内容暂时无法获取') + if (!data.summary) throw new Error('内容暂时无法获取') return data }, enabled: !!cid, @@ -52,7 +52,7 @@ export const XLogSummary: FC = (props) => { ) : ( - data?.data + data?.summary )} {isLoading && (