fix: streamline AI retouch submission feedback

This commit is contained in:
2026-08-14 15:46:17 +08:00
parent 30bfe0313f
commit 83afcb6deb
6 changed files with 56 additions and 48 deletions
@@ -253,6 +253,12 @@ final class TravelAlbumDetailViewModel {
notifyStateChange()
}
/// AI 修图提交成功后重置选择状态,并刷新相册摘要、数量与当前素材列表。
func refreshAfterAIRetouchSubmission(api: any TravelAlbumServing) async {
completeAIRetouchSubmission()
await refreshAll(api: api)
}
/// 预览页删除成功后移除对应素材,并同步全部/已购计数。
func removeMaterialAfterPreviewDeletion(id: Int) {
guard let index = materials.firstIndex(where: { $0.id == id }) else { return }