|
@@ -17,7 +17,7 @@ class TrainContentViewModel : BaseViewModel() {
|
|
|
fun findAllTreatment(
|
|
|
fail: ((msg: String) -> Unit)? = null,
|
|
|
success: ((success: List<TreatmentBean>) -> Unit)? = null,
|
|
|
- ) = launchFlow(true) {
|
|
|
+ ) = launchFlow(false) {
|
|
|
WORKBENCHES_API.findAllTreatment()
|
|
|
}.runUI(
|
|
|
success,
|