opt: reply del

This commit is contained in:
guozhigq
2024-11-13 23:59:31 +08:00
parent 57407c943f
commit 0009630639
5 changed files with 54 additions and 8 deletions

View File

@ -84,6 +84,16 @@ class VideoReplyReplyController extends GetxController {
return res;
}
// 移除评论
Future removeReply(int? rpid, int? frpid) async {
// 移除一楼评论
if (rpid != null) {
replyList.removeWhere((item) {
return item.rpid == rpid;
});
}
}
@override
void onClose() {
currentPage = 0;