Просмотр исходного кода

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

tangchao 1 день назад
Родитель
Сommit
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()
     }