This commit is contained in:
anlicheng 2025-03-04 19:42:05 +08:00
parent a497280270
commit 4db3aaa420

View File

@ -128,7 +128,7 @@ final class IndexModel {
self.updateDramaGroups.removeAll() self.updateDramaGroups.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 = groups
} }
} }
@ -406,11 +406,13 @@ extension IndexView {
image image
.resizable() .resizable()
.aspectRatio(contentMode: .fill) .aspectRatio(contentMode: .fill)
.frame(width: geometry.frame(in: .local).width, height: 80)
.clipped() .clipped()
default: default:
Image("ph_img_medium") Image("ph_img_medium")
.resizable() .resizable()
.aspectRatio(contentMode: .fill) .aspectRatio(contentMode: .fill)
.frame(width: geometry.frame(in: .local).width, height: 80)
.clipped() .clipped()
} }
} }