feat: 更新.gitignore,删除需求文档,优化API调试信息
- 在.gitignore中添加忽略项以排除不必要的文件。 - 删除架构分析需求文档以简化项目文档。 - 在APIEndpoints.swift和LoginModels.swift中移除调试信息的异步调用,提升代码简洁性。 - 在EMailLoginFeature.swift和HomeFeature.swift中新增登录流程状态管理,优化用户体验。 - 在多个视图中调整状态管理和导航逻辑,确保一致性和可维护性。 - 更新Xcode项目配置以增强调试信息的输出格式。
This commit is contained in:
@@ -24,7 +24,7 @@ struct SplashFeature {
|
||||
case .onAppear:
|
||||
state.isLoading = true
|
||||
state.shouldShowMainApp = false
|
||||
state.authenticationStatus = .notFound
|
||||
state.authenticationStatus = UserInfoManager.AuthenticationStatus.notFound
|
||||
state.isCheckingAuthentication = false
|
||||
|
||||
// 1秒延迟后显示主应用 (iOS 15.5+ 兼容)
|
||||
@@ -51,7 +51,6 @@ struct SplashFeature {
|
||||
case let .authenticationChecked(status):
|
||||
#if DEBUG
|
||||
debugInfoSync("🔑 需要手动登录")
|
||||
NotificationCenter.default.post(name: .autoLoginFailed, object: nil)
|
||||
return .none
|
||||
#endif
|
||||
state.isCheckingAuthentication = false
|
||||
@@ -60,10 +59,8 @@ struct SplashFeature {
|
||||
// 根据认证状态发送相应的导航通知
|
||||
if status.canAutoLogin {
|
||||
debugInfoSync("🎉 自动登录成功,进入主页")
|
||||
NotificationCenter.default.post(name: .autoLoginSuccess, object: nil)
|
||||
} else {
|
||||
debugInfoSync("🔑 需要手动登录")
|
||||
NotificationCenter.default.post(name: .autoLoginFailed, object: nil)
|
||||
}
|
||||
|
||||
return .none
|
||||
|
Reference in New Issue
Block a user