Commit 688401e5 authored by pete谢兆麟's avatar pete谢兆麟

跟H5返回首页联调

parent 565563bd
......@@ -577,8 +577,10 @@ extension YHJsApi {
@objc func backToHomeIndex(_ index: Int) {
DispatchQueue.main.async {
UIViewController.current?.navigationController?.popToRootViewController(animated: true)
UIViewController.current?.tabBarController?.selectedIndex = 0
NotificationCenter.default.post(name: YhConstant.YhNotification.backToHomeNotification, object: nil, userInfo: ["value": index])
DispatchQueue.main.asyncAfter(deadline: .now() + 0.35) {
UIViewController.current?.tabBarController?.selectedIndex = 0
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