This commit is contained in:
anlicheng 2025-02-24 22:51:25 +08:00
parent ef092bde46
commit 13f1ea0ec6

View File

@ -115,6 +115,7 @@ final class IndexModel {
//
@MainActor
func loadDateUpdateDramas(userId: Int, date: String) async {
self.showUpdateDramas.removeAll()
let response = await API.loadDateUpdateDramas(userId: userId, date: date, as: [UpdateDramaGroup].self)
if case let .result(groups) = response {
self.updateDramaGroups = preappendMergeDramaGroups(groups: self.updateDramaGroups, mergeGroups: groups)