Let's use AI to Earn!
TypeScript auto-publishdouyindouyin-apielectron-appelectron-reactkuaishoukwaipublishedshipinhaotoolxiaohongshu
小红书搜索显示状态处理
DESKTOP-EMF2SH4\Administratord5abe8c4879e
diff --git a/src/views/replyother/replyother.tsx b/src/views/replyother/replyother.tsxindex ffb13ecb..9cab9d05 100644--- a/src/views/replyother/replyother.tsx+++ b/src/views/replyother/replyother.tsx@@ -686,7 +686,7 @@ export default function Page() {const likePost = async (post: any) => {try {// 如果已经点赞,则不重复操作- if (likedPosts[post.dataId]) {+ if (likedPosts[post.dataId] || post?.data?.note_card?.interact_info?.liked ) {message.info('已经点赞过了');return;}@@ -736,7 +736,7 @@ export default function Page() {const collectPost = async (post: any) => {try {// 如果已经收藏,则不重复操作- if (collectedPosts[post.dataId]) {+ if (collectedPosts[post.dataId] || post?.data?.note_card?.interact_info?.collected) {message.info('已经收藏过了');return;}@@ -1103,10 +1103,10 @@ export default function Page() {><LikeOutlinedstyle={{- color: likedPosts[item.dataId]+ color: (likedPosts[item.dataId] || item?.data.note_card?.interact_info?.liked)? '#ff4d4f': undefined,- fontSize: likedPosts[item.dataId]+ fontSize: (likedPosts[item.dataId] || item?.data.note_card?.interact_info?.liked)? '18px': undefined,}}@@ -1133,10 +1133,10 @@ export default function Page() {><StarOutlinedstyle={{- color: collectedPosts[item.dataId]+ color: (collectedPosts[item.dataId] || item?.data.note_card?.interact_info?.collected)? '#faad14': undefined,- fontSize: collectedPosts[item.dataId]+ fontSize: (collectedPosts[item.dataId] || item?.data.note_card?.interact_info?.collected)? '18px': undefined,}}