解决回复评论不显示在工作台的问题

This commit is contained in:
宇阳
2024-10-15 12:41:30 +08:00
parent 2d0f833aa5
commit c19ed5b865
3 changed files with 6 additions and 4 deletions

View File

@@ -86,7 +86,9 @@ const WorkPage = () => {
const fetchData = async (type: Menu) => {
if (type === "comment") {
const { data } = await getCommentListAPI({ query: { status: 0 } });
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 } });