feat: 流程走通

This commit is contained in:
jinyaqiu 2025-08-29 15:33:05 +08:00
parent 10ecd93b54
commit 5f877b56b3
4 changed files with 10 additions and 5 deletions

View File

@ -267,7 +267,11 @@ struct ContentView: View {
} }
.background(Color.themeTextWhiteSecondary) .background(Color.themeTextWhiteSecondary)
.navigationBarHidden(true) .navigationBarHidden(true)
.navigationBarBackButtonHidden(true)
} }
.navigationViewStyle(StackNavigationViewStyle())
.navigationBarHidden(true)
.navigationBarBackButtonHidden(true)
} }
/// ///

View File

@ -12,6 +12,7 @@ enum AppRoute: Hashable {
case memories case memories
case subscribe case subscribe
case userInfo case userInfo
case content
@ViewBuilder @ViewBuilder
var view: some View { var view: some View {
@ -36,6 +37,8 @@ enum AppRoute: Hashable {
SubscribeView() SubscribeView()
case .userInfo: case .userInfo:
UserInfo() UserInfo()
case .content:
ContentView()
} }
} }
} }

View File

@ -35,7 +35,7 @@ struct JoinModal: View {
Spacer() Spacer()
Button(action: { Button(action: {
withAnimation { withAnimation {
isPresented = false Router.shared.navigate(to: .content)
} }
}) { }) {
Image(systemName: "xmark") Image(systemName: "xmark")

View File

@ -45,11 +45,9 @@ struct WakeApp: App {
} else { } else {
// //
if authState.isAuthenticated { if authState.isAuthenticated {
// userInfo //
MediaUploadView() ContentView()
.environmentObject(authState) .environmentObject(authState)
// ContentView()
// .environmentObject(authState)
} else { } else {
// //
LoginView() LoginView()