fix(ios): 修复另一个 LinearGradient/Color 三元表达式类型不匹配

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wangdl 2026-05-27 22:07:37 +08:00
parent 2dac206b39
commit e0998169a1

View File

@ -220,7 +220,7 @@ struct AddKnowledgePage: View {
Text("保存").font(.system(size: 14, weight: .bold))
}
.foregroundColor(.white).frame(maxWidth: .infinity).frame(height: 52)
.background(canSave ? ZXGradient.ctaPurple : Color.zxHairlineStrong)
.background(canSave ? AnyView(ZXGradient.ctaPurple) : AnyView(Color.zxHairlineStrong))
.clipShape(RoundedRectangle(cornerRadius: 16))
}
.disabled(!canSave || isSaving)