// // LoginState.swift // punchnet // // Created by 安礼成 on 2026/1/16. // import Foundation import Observation @Observable class AppContext { var noticePort: Int // 调用 "/connect" 之后的网络信息 var networkContext: NetworkContext? // 当前的场景 enum AppScene: Equatable { case login(username: String?) case logined case register case resetPassword } // 当前app所处的场景 var appScene: AppScene = .login(username: nil) init(noticePort: Int) { self.noticePort = noticePort } }