Commit 1c0bf6dd authored by Alex朱枝文's avatar Alex朱枝文

社区监听登入状态更改,刷新列表

parent d0349142
......@@ -56,6 +56,7 @@ class YHCircleViewController: YHBaseViewController {
override func viewDidLoad() {
super.viewDidLoad()
setupUI()
NotificationCenter.default.addObserver(self, selector: #selector(loginSuccess), name: YhConstant.YhNotification.didLoginSuccessNotifiction, object: nil)
requestList(true)
}
......@@ -67,6 +68,10 @@ class YHCircleViewController: YHBaseViewController {
// MARK: - 私有方法
private extension YHCircleViewController {
@objc private func loginSuccess() {
requestList(true)
}
func setupUI() {
gk_navigationBar.isHidden = true
view.addSubview(circleCollectView)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment