From b46cb69df489165c3f6328fa5e78b8108072394e Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Wed, 24 Dec 2025 12:46:43 +0800 Subject: [PATCH] opt reload reply Signed-off-by: bggRGjQaUbCoE --- lib/pages/video/introduction/pgc/controller.dart | 8 +++++--- lib/pages/video/introduction/ugc/controller.dart | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/pages/video/introduction/pgc/controller.dart b/lib/pages/video/introduction/pgc/controller.dart index 6faa8ea16..c25b98a97 100644 --- a/lib/pages/video/introduction/pgc/controller.dart +++ b/lib/pages/video/introduction/pgc/controller.dart @@ -306,9 +306,11 @@ class PgcIntroController extends CommonIntroController { // 重新请求评论 if (videoDetailCtr.showReply) { try { - Get.find(tag: heroTag) - ..aid = aid - ..onReload(); + final replyCtr = Get.find(tag: heroTag) + ..aid = aid; + if (replyCtr.loadingState.value is! Loading) { + replyCtr.onReload(); + } } catch (_) {} } diff --git a/lib/pages/video/introduction/ugc/controller.dart b/lib/pages/video/introduction/ugc/controller.dart index 87e9fb37d..078e30cf8 100644 --- a/lib/pages/video/introduction/ugc/controller.dart +++ b/lib/pages/video/introduction/ugc/controller.dart @@ -518,9 +518,11 @@ class UgcIntroController extends CommonIntroController with ReloadMixin { // 重新请求评论 if (videoDetailCtr.showReply) { try { - Get.find(tag: heroTag) - ..aid = aid - ..onReload(); + final replyCtr = Get.find(tag: heroTag) + ..aid = aid; + if (replyCtr.loadingState.value is! Loading) { + replyCtr.onReload(); + } } catch (_) {} }