From 212fdea5a01b49e3b0a743d8cdf9f090eaa13f0b Mon Sep 17 00:00:00 2001 From: cuiyouliang <799699717@qq.com> Date: Fri, 22 Aug 2025 18:29:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E8=8D=90=E8=A7=86=E9=A2=91=E8=AF=84?= =?UTF-8?q?=E8=AE=BA=E5=92=8C=E7=82=B9=E8=B5=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/video/module/recommend.dart | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/pages/video/module/recommend.dart b/lib/pages/video/module/recommend.dart index 7974a23..c89200f 100644 --- a/lib/pages/video/module/recommend.dart +++ b/lib/pages/video/module/recommend.dart @@ -663,9 +663,7 @@ Future fetchComments(int videoId, {bool loadMore = false}) async { }); final resCode = res['code']; if (resCode == 200) { - setState(() { - item['doILikeThisVlog'] = !item['doILikeThisVlog']; - }); + item['doILikeThisVlog'] = !item['doILikeThisVlog']; } } catch (e) { logger.i('点击取消喜欢按钮报错: $e'); @@ -680,9 +678,7 @@ Future fetchComments(int videoId, {bool loadMore = false}) async { }); final resCode = res['code']; if (resCode == 200) { - setState(() { - item['doILikeThisVlog'] = !item['doILikeThisVlog']; - }); + item['doILikeThisVlog'] = !item['doILikeThisVlog']; } logger.i('点赞返回信息----------->: $res'); } catch (e) {