diff --git a/src/components/widgets/xlog/XLogSummary.tsx b/src/components/widgets/xlog/XLogSummary.tsx index 73c49fd716..f54801abc8 100644 --- a/src/components/widgets/xlog/XLogSummary.tsx +++ b/src/components/widgets/xlog/XLogSummary.tsx @@ -46,7 +46,15 @@ const XLogSummary: FC<{

- {isLoading ? '加载中...' : error ? '请求错误' : data?.data} + {isLoading ? ( +

+ + + +
+ ) : ( + data?.data + )}

{isLoading && (

@@ -60,9 +68,8 @@ const XLogSummary: FC<{ ) - console.log(data, cid) - if (!cid || !data?.data) { + if (!cid || error) { Inner = null }