This commit is contained in:
anlicheng 2025-02-25 14:50:03 +08:00
parent 74fbe1b7a3
commit 6e28950c76

View File

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