Commit 5516b476 authored by Steven杜宇's avatar Steven杜宇

// AI

parent 841f3095
...@@ -187,6 +187,11 @@ func configTabBarController() -> YHTabBarViewController { ...@@ -187,6 +187,11 @@ func configTabBarController() -> YHTabBarViewController {
tabBarController.didHijackHandler = { tabBarController.didHijackHandler = {
tabBarController, viewController, index in tabBarController, viewController, index in
if index == ai_tabIndex { if index == ai_tabIndex {
if !YHLoginManager.shared.isLogin() {
YHOneKeyLoginManager.shared.oneKeyLogin()
return
}
let vc = YHAITabViewController() let vc = YHAITabViewController()
UIViewController.current?.navigationController?.pushViewController(vc) UIViewController.current?.navigationController?.pushViewController(vc)
} }
......
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