Skip to content

Commit

Permalink
修正关注流首页不满12个时显示不全的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yichengchen committed Jun 18, 2024
1 parent 2a10772 commit 48ef3a0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ class StandardVideoCollectionViewController<T: PlayableData>: UIViewController,
page = 1
do {
let res = try await request(page: 1)
collectionVC.displayDatas = res
collectionVC.displayDatas = []
collectionVC.appendData(displayData: res)
} catch let err {
let alert = UIAlertController(title: "Error", message: "\(err)", preferredStyle: .alert)
alert.addAction(.init(title: "Ok", style: .cancel))
Expand Down

0 comments on commit 48ef3a0

Please sign in to comment.