IOS_Boss/IOS_study/PLJobView+.swift
2025-07-01 11:41:38 +08:00

24 lines
456 B
Swift
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// PLJobView+.swift
// IOS_study
//
// Created by CC-star on 2025/7/1.
//
import SwiftUI
extension PLJobView {
func toggleJobStatus() {
vm.toggleJobStatus()
hud.show(isActive ? "上线成功" : "下线成功")//
}
func removeJob() {
vm.removeJob()
hud.show("删除成功")
if !naviPath.isEmpty {
naviPath.removeLast()
}
}
}