优化首页位置上报体验
This commit is contained in:
@ -183,7 +183,11 @@ final class HomeViewController: BaseViewController {
|
||||
) as! HomeLocationReportCell
|
||||
cell.cardView.onReportTap = { [weak self] in
|
||||
guard let self else { return }
|
||||
Task { await self.viewModel.manualReportLocation(api: self.homeAPI) }
|
||||
Task { @MainActor in
|
||||
self.showLoading()
|
||||
defer { self.hideLoading() }
|
||||
await self.viewModel.manualReportLocation(api: self.homeAPI)
|
||||
}
|
||||
}
|
||||
cell.apply(
|
||||
address: HomeViewModel.locationReportPromptText,
|
||||
|
||||
Reference in New Issue
Block a user