Skip to content

Let's use AI to Earn!

feat: 修复列表查看

yikaJasonMicdf7d62c58b42
diff --git a/electron/main/plat/platforms/douyin/index.ts b/electron/main/plat/platforms/douyin/index.ts
index 55fe0a7f..9503cee0 100644
--- a/electron/main/plat/platforms/douyin/index.ts
+++ b/electron/main/plat/platforms/douyin/index.ts
@@ -1,7 +1,7 @@
/*
* @Author: nevin
* @Date: 2025-02-08 11:40:45
- * @LastEditTime: 2025-03-24 23:32:58
+ * @LastEditTime: 2025-03-31 09:42:25
* @LastEditors: nevin
* @Description: 抖音
*/
diff --git a/electron/plat/douyin/index.ts b/electron/plat/douyin/index.ts
index caf7bc5c..5c662da9 100644
--- a/electron/plat/douyin/index.ts
+++ b/electron/plat/douyin/index.ts
@@ -2235,7 +2235,6 @@ export class DouyinService {
},
method: 'GET',
});
-
return res;
}
diff --git a/src/views/reply/components/commentList.tsx b/src/views/reply/components/commentList.tsx
index 3099caf1..e8f8091d 100644
--- a/src/views/reply/components/commentList.tsx
+++ b/src/views/reply/components/commentList.tsx
@@ -1,7 +1,7 @@
/*
* @Author: nevin
* @Date: 2025-03-18 21:02:38
- * @LastEditTime: 2025-03-25 14:28:36
+ * @LastEditTime: 2025-03-31 09:43:51
* @LastEditors: nevin
* @Description: 评论列表
*/
@@ -33,6 +33,11 @@ const Com = forwardRef<CommentListRef>((props: any, ref) => {
async function init(accountId: number, workData: WorkData) {
setCommentList([]);
+ setPageInfo({
+ count: 0,
+ hasMore: false,
+ });
+
setAccountId(accountId);
setWorkData(workData);
await getCommentList(accountId, workData);
@@ -45,6 +50,10 @@ const Com = forwardRef<CommentListRef>((props: any, ref) => {
function handleCancel() {
setCommentList([]);
+ setPageInfo({
+ count: 0,
+ hasMore: false,
+ });
setIsModalOpen(false);
}