From 93d83d55ee7a96633a48f5c5813c3da2ea1ddd8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Liu=20=E5=AE=87=E9=98=B3?= Date: Mon, 21 Oct 2024 12:19:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=88=B0=E6=89=80=E5=B1=9E?= =?UTF-8?q?=E6=96=87=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Comment/index.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pages/Comment/index.tsx b/src/pages/Comment/index.tsx index b8f6e58..157d7ff 100644 --- a/src/pages/Comment/index.tsx +++ b/src/pages/Comment/index.tsx @@ -6,9 +6,14 @@ import { ColumnsType } from 'antd/es/table'; import { titleSty } from '@/styles/sty'; import Title from '@/components/Title'; import { Comment, FilterForm } from '@/types/app/comment' + +import { useWebStore } from '@/stores' + import dayjs from 'dayjs'; const CommentPage = () => { + const store = useWebStore() + const [loading, setLoading] = useState(false); const [comment, setComment] = useState(); const [list, setList] = useState([]); @@ -67,13 +72,13 @@ const CommentPage = () => { title: '网站', dataIndex: 'url', key: 'url', - render: (url: string) => url ? {url} : '无网站', + render: (url: string) => url ? {url} : '无网站', }, { title: '所属文章', dataIndex: 'articleTitle', key: 'articleTitle', - render: (text: string) => (text ? text : '该评论暂未绑定文章'), + render: (text: string, record: Comment) => (text ? {text} : '该评论暂未绑定文章'), }, { title: '评论时间',