Ver Fonte

1.优化首页游戏任务完成后没有更新状态bug

王鹏鹏 há 2 anos atrás
pai
commit
72533f43a0

+ 1 - 1
home/src/main/java/com/yingyangfly/home/activity/HomeViewModel.kt

@@ -45,7 +45,7 @@ class HomeViewModel : BaseViewModel() {
     fun findMyCurrentTask(
         fail: ((msg: String) -> Unit)? = null,
         success: ((success: List<MyTaskBean>?) -> Unit)? = null,
-    ) = launchFlow(true) {
+    ) = launchFlow(false) {
         HOME_API.findMyCurrentTask()
     }.runUI(
         success,