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