优化UI
This commit is contained in:
@@ -81,7 +81,7 @@ class FamilySwitchDialog(
|
||||
withContext(Dispatchers.Main) {
|
||||
if (response.code == 200 && response.data != null) {
|
||||
familyBeanList = response.data.reversed()
|
||||
val familyItems = familyBeanList.map { FamilyItem(it.id, it.parentName) }
|
||||
val familyItems = familyBeanList.map { FamilyItem(it.id, it.parentName, it.role) }
|
||||
adapter.updateList(familyItems)
|
||||
|
||||
familyBeanList.firstOrNull()?.let {
|
||||
|
||||
Reference in New Issue
Block a user