IOS_Boss/IOS_study/Post/PostJobView.swift
2025-07-27 12:33:06 +08:00

28 lines
597 B
Swift

//
// PostJobView.swift
// IOS_study
//
// Created by CC-star on 2025/6/28.
//
import SwiftUI
struct PostJobView: View {
@Environment(AuthViewModel.self) var authVM
@Environment(TabBarViewModel.self) var TabBarVM
@State var naviPath = NavigationPath()
var body: some View {
if authVM.isLogin {
NavigationStack(path: $naviPath) {
PostPLJobIView(naviPath: $naviPath)
}
} else {
Button {
TabBarVM.selectedTab = "profile"
} label: {
Text("去登录").appleStyle().padding()
}
}
}
}