diff --git a/src/components/ConfigEditor/SettingsEditor.vue b/src/components/ConfigEditor/SettingsEditor.vue index d15866c..a416ba6 100644 --- a/src/components/ConfigEditor/SettingsEditor.vue +++ b/src/components/ConfigEditor/SettingsEditor.vue @@ -38,7 +38,7 @@ @update:modelValue="updateConfig" > ({ // 提供默认结构以避免模板错误 organization_name: '', - gRPC: { prefix: 'http', host: 'localhost', port: 50051 }, - api: { prefix: 'http', host: 'localhost', port: 50050 }, - command: { prefix: 'http', host: 'localhost', port: 50052 } + gRPC: { prefix: 'http', host: 'localhost', mp_port: 50051 }, + api: { prefix: 'http', host: 'localhost', mp_port: 50050 }, + command: { prefix: 'http', host: 'localhost', mp_port: 50052 } }) } }); @@ -169,9 +169,9 @@ watch(() => props.configData, (newVal) => { // 深拷贝,并确保所有层级都存在 localConfig.value = JSON.parse(JSON.stringify({ organization_name: newVal?.organization_name || '', - gRPC: { ...(newVal?.gRPC || { prefix: 'http', host: 'localhost', port: 50051 }) }, - api: { ...(newVal?.api || { prefix: 'http', host: 'localhost', port: 50050 }) }, - command: { ...(newVal?.command || { prefix: 'http', host: 'localhost', port: 50052 }) } + gRPC: { ...(newVal?.gRPC || { prefix: 'http', host: 'localhost', mp_port: 50051 }) }, + api: { ...(newVal?.api || { prefix: 'http', host: 'localhost', mp_port: 50050 }) }, + command: { ...(newVal?.command || { prefix: 'http', host: 'localhost', mp_port: 50052 }) } })); // 重置表单验证状态 (如果需要) // if (form.value) { diff --git a/src/pages/DownloadPreset.vue b/src/pages/DownloadPreset.vue index 24d834d..b0b7d08 100644 --- a/src/pages/DownloadPreset.vue +++ b/src/pages/DownloadPreset.vue @@ -4,7 +4,7 @@

点击按钮下载集控预设配置文件。

- + 下载预设配置