fix
This commit is contained in:
parent
ef092bde46
commit
13f1ea0ec6
@ -115,6 +115,7 @@ final class IndexModel {
|
|||||||
// 指定日期,并更新日期下对应的数据
|
// 指定日期,并更新日期下对应的数据
|
||||||
@MainActor
|
@MainActor
|
||||||
func loadDateUpdateDramas(userId: Int, date: String) async {
|
func loadDateUpdateDramas(userId: Int, date: String) async {
|
||||||
|
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 {
|
||||||
self.updateDramaGroups = preappendMergeDramaGroups(groups: self.updateDramaGroups, mergeGroups: groups)
|
self.updateDramaGroups = preappendMergeDramaGroups(groups: self.updateDramaGroups, mergeGroups: groups)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user