优化细节

This commit is contained in:
宇阳
2024-10-15 13:00:59 +08:00
parent c19ed5b865
commit ca63771eec
2 changed files with 3 additions and 4 deletions

View File

@@ -50,6 +50,7 @@ const ListItem = ({ item, type, handleApproval, handleRejection }: ListItemProps
<div>{item.content}</div>
<div>{item.email || '暂无'}</div>
<div>{item.url || '暂无'}</div>
<div><a href={`/article/${item.articleId}`} className="hover:text-primary">{item.articleTitle || '暂无'}</a></div>
</>
) : (
<>
@@ -87,8 +88,6 @@ const WorkPage = () => {
const fetchData = async (type: Menu) => {
if (type === "comment") {
const { data } = await getCommentListAPI({ query: { status: 0 }, pattern: "list" });
console.log(data, 444);
setCommentList(data);
} else if (type === "link") {
const { data } = await getLinkListAPI({ query: { status: 0 } });