fix: 专栏评论区异常重载且丢失数据

This commit is contained in:
orz12
2024-02-26 13:43:54 +08:00
parent c1a66fd1d5
commit 34925ae92f
2 changed files with 137 additions and 185 deletions

View File

@@ -45,11 +45,15 @@ class HtmlRenderController extends GetxController {
}
response = res;
oid.value = res['commentId'];
queryReplyList(reqType: 'init');
return res;
}
// 请求评论
Future queryReplyList({reqType = 'init'}) async {
if (reqType == 'init') {
currentPage = 0;
}
var res = await ReplyHttp.replyList(
oid: oid.value,
pageNum: currentPage + 1,