Ver Fonte

【fix】【登录】点击右上角导航栏的登录按钮,登录免费账户成功后,不应该自动弹出比较表

tangchao há 5 dias atrás
pai
commit
cc570cf8e7

+ 3 - 1
PDF Office/PDF Master/MemberCenter/WindowsController/KMLoginWindowsController.swift

@@ -24,7 +24,7 @@ class KMLoginWindowsController: NSWindowController {
     
     var signUpView: KMSignUpView?
     
-    var loginResult: LoginResultComplete!
+    var loginResult: LoginResultComplete?
     
     private var viewModel = KMSignUpViewModel()
     private var cancellables = Set<AnyCancellable>()
@@ -56,6 +56,8 @@ class KMLoginWindowsController: NSWindowController {
     override func showWindow(_ sender: Any?) {
         super.showWindow(sender)
         
+        loginResult = nil
+        
         initializeUI()
     }