refactor: improve alert error context and copy action

This commit is contained in:
世界
2026-02-08 18:25:55 +08:00
parent a86dfc26d1
commit 8897e6deeb
32 changed files with 125 additions and 82 deletions
@@ -85,7 +85,7 @@ public final class EditProfileContentViewModel: BaseViewModel {
do {
try await loadContentBackground()
} catch {
alert = AlertState(error: error)
alert = AlertState(action: "load profile content", error: error)
}
isLoading = false
}
@@ -111,7 +111,7 @@ public final class EditProfileContentViewModel: BaseViewModel {
do {
try await saveContentBackground(profile)
} catch {
alert = AlertState(error: error)
alert = AlertState(action: "save profile content", error: error)
return
}
isChanged = false