From 529f3c6b775dc75869f978f7403ac50c5343b4e4 Mon Sep 17 00:00:00 2001
From: 杨锴 <841720330@qq.com>
Date: 星期五, 08 十一月 2024 21:34:06 +0800
Subject: [PATCH] fix bug

---
 XQMuse/Root/Course/VC/CourseVCOfficalCommentVC.swift |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/XQMuse/Root/Course/VC/CourseVCOfficalCommentVC.swift b/XQMuse/Root/Course/VC/CourseVCOfficalCommentVC.swift
index 8269fa0..afe8ea0 100644
--- a/XQMuse/Root/Course/VC/CourseVCOfficalCommentVC.swift
+++ b/XQMuse/Root/Course/VC/CourseVCOfficalCommentVC.swift
@@ -18,6 +18,8 @@
 				}
 }
 
+let CourseOfficalComment_Noti = Notification.Name.init("CourseOfficalComment_Noti")
+
 class CourseVCOfficalCommentVC: BaseVC {
 
 				private var collectionView:UICollectionView!
@@ -69,6 +71,12 @@
 								}
 				}
 
+    override func setRx() {
+        NotificationCenter.default.rx.notification(CourseOfficalComment_Noti).take(until: self.rx.deallocated).subscribe(onNext: {[weak self] _ in
+            self?.viewModel.beginRefresh()
+        }).disposed(by: disposeBag)
+    }
+
 				override var shouldAutorotate: Bool{
 								return  false
 				}

--
Gitblit v1.7.1