From 3575366d53d495dab28f472c3218efb5529322c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A2=81=E6=B6=9B?= Date: Fri, 17 Apr 2026 19:43:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=B8=8B=E6=8B=89=E6=A1=86=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=80=BC=E7=BC=BA=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/App.vue b/src/App.vue index dff9685..e832430 100644 --- a/src/App.vue +++ b/src/App.vue @@ -787,6 +787,10 @@ const loadSettings = async () => { const data = JSON.parse(JSON.stringify(result.data)) if (!data.checkpointing) data.checkpointing = { enabled: true } if (!data.mcpServers) data.mcpServers = {} + // 确保常规设置字段有默认值 + if (data.language === undefined) data.language = 'zh-CN' + if (data.theme === undefined) data.theme = 'Xcode' + if (data.bootAnimationShown === undefined) data.bootAnimationShown = true // 确保 API 相关字段有默认值 if (data.selectedAuthType === undefined) data.selectedAuthType = 'iflow' if (data.apiKey === undefined) data.apiKey = ''