Commit 6caa58e9 authored by David黄金龙's avatar David黄金龙
parents 520f5301 5e219e64
...@@ -118,6 +118,7 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget ...@@ -118,6 +118,7 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
[weak self] success, error in [weak self] success, error in
guard let self = self else { return } guard let self = self else { return }
YHHUD.hide() YHHUD.hide()
if success {
DispatchQueue.main.async { DispatchQueue.main.async {
YHHUD.flash(message: "退出成功") YHHUD.flash(message: "退出成功")
YHLoginManager.shared.clearUserInfo() YHLoginManager.shared.clearUserInfo()
...@@ -127,6 +128,7 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget ...@@ -127,6 +128,7 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
self.navigationController?.popViewController(animated: true) self.navigationController?.popViewController(animated: true)
} }
return return
}
} }
} }
} }
......
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