Commit 7565d673 authored by Alex朱枝文's avatar Alex朱枝文

续签在港记录代码优化3

parent 733fed25
...@@ -147,7 +147,7 @@ extension YHHKRecordsContentVC { ...@@ -147,7 +147,7 @@ extension YHHKRecordsContentVC {
} }
guard sections.count > 0 else { guard sections.count > 0 else {
noDataView.isHidden = false noDataView.isHidden = false
datas = sections datas = []
tableView.reloadData() tableView.reloadData()
return return
} }
......
...@@ -106,6 +106,8 @@ extension YHHKRecordsSummaryVC { ...@@ -106,6 +106,8 @@ extension YHHKRecordsSummaryVC {
private func updateVC(recordsSummary: YHHKImmigrationRecordsSummaryModel) { private func updateVC(recordsSummary: YHHKImmigrationRecordsSummaryModel) {
guard recordsSummary.list.count > 0 else { guard recordsSummary.list.count > 0 else {
noDataView.isHidden = false noDataView.isHidden = false
datas = []
tableView.reloadData()
return return
} }
var sections: [YHHKRecordSectionType] = [.header("在港逗留情况")] var sections: [YHHKRecordSectionType] = [.header("在港逗留情况")]
...@@ -144,6 +146,8 @@ extension YHHKRecordsSummaryVC { ...@@ -144,6 +146,8 @@ extension YHHKRecordsSummaryVC {
} }
guard sections.count > 1 else { guard sections.count > 1 else {
noDataView.isHidden = false noDataView.isHidden = false
datas = []
tableView.reloadData()
return return
} }
datas = sections datas = sections
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment