From 6a4a3018471d1a7e46d70ea93470c0d010dc962a Mon Sep 17 00:00:00 2001 From: Wenxuan Shen Date: Wed, 23 Apr 2025 19:18:52 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E5=8F=AA=E6=9B=B4?= =?UTF-8?q?=E6=94=B9mp=5Fport?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ConfigEditor/SettingsEditor.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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) { From ac49dc51ef1d6a725068704e180686b3eadb6bf5 Mon Sep 17 00:00:00 2001 From: Wenxuan Shen Date: Wed, 23 Apr 2025 19:27:46 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=A2=84=E8=AE=BE?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=B8=8D=E8=83=BD=E4=B8=8B=E8=BD=BD=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/DownloadPreset.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@

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

- + 下载预设配置