Commit 998439a8 authored by DavidHuang's avatar DavidHuang

返回 银河甄选

parent 042d51f3
...@@ -574,10 +574,10 @@ extension YHJsApi { ...@@ -574,10 +574,10 @@ extension YHJsApi {
} }
} }
//1.保存base64图片格式到本地 //23.返回 银河甄选
@objc func backToHomeIndex(_ index: Int) { @objc func backToHomeIndex(_ index: Int) {
DispatchQueue.main.async { DispatchQueue.main.async {
UIViewController.current?.navigationController?.popToRootViewController(animated: true) UIViewController.current?.navigationController?.popToRootViewController(animated: false)
DispatchQueue.main.asyncAfter(deadline: .now() + 0.35) { DispatchQueue.main.asyncAfter(deadline: .now() + 0.35) {
UIViewController.current?.tabBarController?.selectedIndex = 0 UIViewController.current?.tabBarController?.selectedIndex = 0
NotificationCenter.default.post(name: YhConstant.YhNotification.backToHomeNotification, object: nil, userInfo: ["value":1]) NotificationCenter.default.post(name: YhConstant.YhNotification.backToHomeNotification, object: nil, userInfo: ["value":1])
......
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