无故事王国
2023-12-08 cf002d12c6cc172a2fe989243c038cc64f627a02
WanPai/Config/Def.swift
@@ -64,22 +64,18 @@
    //提示框
func alert(msg: String) {
//    hiddenHUD()
   SVProgressHUD.showInfo(withStatus: msg,maskType: .clear)
   SVProgressHUD.showInfo(withStatus: msg)
}
func alertError(msg:String){
//    hiddenHUD()
   SVProgressHUD.showError(withStatus: msg,maskType: .clear)
   SVProgressHUD.showError(withStatus: msg)
}
func alertSuccess(msg:String){
//    hiddenHUD()
    SVProgressHUD.showSuccess(withStatus: msg,maskType: .clear)
    SVProgressHUD.showSuccess(withStatus: msg)
}
func showHUD(_ text:String? = nil){
   SVProgressHUD.setContainerView(sceneDelegate?.window)
   SVProgressHUD.show(withStatus: text)
}