缺少代码差异信息,无法生成具体的commit message。请提供code differences内容以便分析并生成符合Angular规范的提交信息。
当您提供代码差异后,我将按照以下格式生成: ``` <type>(<scope>): <subject> <body> ``` 其中type会根据更改类型选择(feat、fix、docs、style、refactor等),scope表示影响范围,subject简要描述变更内容,body详细说明修改内容。
This commit is contained in:
@@ -4,6 +4,7 @@ import SwiftData
|
||||
@main
|
||||
struct KangkangApp: App {
|
||||
@State private var lang = LanguageManager.shared
|
||||
@State private var fontScale = FontScaleManager.shared
|
||||
|
||||
init() {
|
||||
// 启动即给 MLX 显存缓存设上限,配合 entitlement + LLM/VL 互斥卸载防 jetsam OOM。
|
||||
@@ -98,7 +99,8 @@ struct KangkangApp: App {
|
||||
AppLockContainer {
|
||||
RootView()
|
||||
.environment(\.locale, lang.locale)
|
||||
.id(lang.current) // 语言切换 → 整树重建,即时生效
|
||||
// 语言 / 字体档位切换 → 整树重建,即时生效(固定字号经 tjScaled 读新倍率)。
|
||||
.id("\(lang.current.rawValue)-\(fontScale.scale.rawValue)")
|
||||
}
|
||||
}
|
||||
.modelContainer(sharedModelContainer)
|
||||
|
||||
Reference in New Issue
Block a user