|
@@ -16,7 +16,7 @@ class LeisureBrainViewModel : BaseViewModel() {
|
|
fun getSelectByDictType(
|
|
fun getSelectByDictType(
|
|
fail: ((msg: String) -> Unit)? = null,
|
|
fail: ((msg: String) -> Unit)? = null,
|
|
success: ((success: List<TrainTypeBean>) -> Unit)? = null,
|
|
success: ((success: List<TrainTypeBean>) -> Unit)? = null,
|
|
- ) = launchFlow(true) {
|
|
|
|
|
|
+ ) = launchFlow(false) {
|
|
WORKBENCHES_API.getSelectByDictType("video_type")
|
|
WORKBENCHES_API.getSelectByDictType("video_type")
|
|
}.runUI(
|
|
}.runUI(
|
|
success,
|
|
success,
|