优化
This commit is contained in:
@@ -133,7 +133,6 @@ fun PurchaseOrderScreen(
|
||||
)
|
||||
) {
|
||||
if (first.value) {
|
||||
viewModel.updateFirstState(false)
|
||||
return@Box
|
||||
}
|
||||
if (products.isEmpty()) {
|
||||
|
||||
@@ -48,6 +48,7 @@ class PurchaseOrderViewModel @Inject constructor(
|
||||
_supplierList.value = _supplierList.value + it
|
||||
}
|
||||
}
|
||||
updateFirstState(false)
|
||||
}
|
||||
} else {
|
||||
launchWithLoading {
|
||||
@@ -57,6 +58,7 @@ class PurchaseOrderViewModel @Inject constructor(
|
||||
_supplierList.value = it
|
||||
}
|
||||
}
|
||||
updateFirstState(false)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user