28 lines
597 B
Swift
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()
|
|
}
|
|
}
|
|
}
|
|
}
|