Browse Source

第一次启动到登录点击失败问题

吴彦祖 10 months ago
parent
commit
dde8c102d3

BIN
ADHTuanCan.xcworkspace/xcuserdata/aodeheng.xcuserdatad/UserInterfaceState.xcuserstate


+ 5 - 0
ADHTuanCan/AppDelegate.swift

@@ -75,6 +75,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
         self.viewController = navMange
         self.viewController = navMange
         self.window?.rootViewController = navMange
         self.window?.rootViewController = navMange
 //        Defaults[\.isFirstOpen] = true
 //        Defaults[\.isFirstOpen] = true
+        
+//        let loginVC = TCLogingViewController()
+//        let keyWindow = UIApplication.shared.keyWindow
+//        self.window?.rootViewController = loginVC
+        
     }
     }
 
 
     //MARK: 进入首页
     //MARK: 进入首页

+ 4 - 3
ADHTuanCan/Class/登录/启动页/StartupPageViewController.swift

@@ -51,9 +51,10 @@ class StartupPageViewController: ADHBaseVC {
     //去登录页
     //去登录页
     func goToLogin(){
     func goToLogin(){
         
         
-        let loginVC = TCLogingViewController()
-        let keyWindow = UIApplication.shared.keyWindow
-        keyWindow?.rootViewController = loginVC
+//        let loginVC = TCLogingViewController()
+//        let keyWindow = UIApplication.shared.keyWindow
+//        keyWindow?.rootViewController = loginVC
+        MCHttpUtil.reLogin()
     }
     }
 
 
 }
 }