feat: fix api define

This commit is contained in:
2025-12-04 16:45:10 +08:00
parent 6f89ad0520
commit 22adce2964
2 changed files with 4 additions and 4 deletions

View File

@@ -82,9 +82,9 @@ class GjcAssembleAllocateViewModel : BasePageViewModel() {
launchLoadingCollect({
NetApply.api.getGjcAssembleAllocateList(listParams)
}) {
onSuccess = { result ->
// 将 PageInfo 转换为 BaseListBean
result.data?.let { pageModel.handleListBean(it.toBaseListBean()) }
onSuccess = { pageInfo ->
// 直接转换为 BaseListBean
pageModel.handleListBean(pageInfo.toBaseListBean())
}
}