From 3851dd7a2172995f2d2976e1a23809fc66afcf03 Mon Sep 17 00:00:00 2001 From: Nixevol Date: Thu, 9 Jul 2026 15:24:35 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=AE=89=E8=A3=85=E9=A1=B5?= =?UTF-8?q?=E5=90=88=E5=B9=B6=20MySQL/Redis=20=E4=B8=BA=E3=80=8C=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E3=80=8D=E5=8D=A1=E7=89=87=EF=BC=8C=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E6=8F=90=E7=A4=BA=E6=94=B9=E4=B8=BA=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=90=8E=E5=8F=B0/=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E7=AB=AF=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/admin/src/locales/en-US.json | 4 +++- apps/admin/src/locales/zh-CN.json | 4 +++- apps/admin/src/views/Install.vue | 40 +++++++++++++++++++++++++------ 3 files changed, 39 insertions(+), 9 deletions(-) diff --git a/apps/admin/src/locales/en-US.json b/apps/admin/src/locales/en-US.json index c48eaac..6b5701c 100644 --- a/apps/admin/src/locales/en-US.json +++ b/apps/admin/src/locales/en-US.json @@ -192,7 +192,9 @@ "base": "Base", "appName": "Platform Name", "baseUrl": "Public URL", - "baseUrlHint": "All three apps share this URL: admin at /admin, client at /trace, API at /api. Reverse-proxy the domain and HTTPS to the service port (default 3000, decided by how the service is launched — not set here).", + "urlAdmin": "Admin", + "urlClient": "Client", + "dbCard": "Database", "host": "Host", "port": "Port", "database": "Database", diff --git a/apps/admin/src/locales/zh-CN.json b/apps/admin/src/locales/zh-CN.json index 06e99e6..1fde025 100644 --- a/apps/admin/src/locales/zh-CN.json +++ b/apps/admin/src/locales/zh-CN.json @@ -192,7 +192,9 @@ "base": "基础", "appName": "平台名称", "baseUrl": "对外访问地址", - "baseUrlHint": "三端共用此地址:后台 /admin、客户端 /trace、接口 /api。域名与 HTTPS 由 Nginx/宝塔/1Panel 反代到服务端口(默认 3000,由启动方式决定,此处无需填写)。", + "urlAdmin": "后台", + "urlClient": "客户端", + "dbCard": "数据库", "host": "主机", "port": "端口", "database": "数据库", diff --git a/apps/admin/src/views/Install.vue b/apps/admin/src/views/Install.vue index 7924911..bfcc72c 100644 --- a/apps/admin/src/views/Install.vue +++ b/apps/admin/src/views/Install.vue @@ -33,7 +33,10 @@

{{ tt('base') }}

-

{{ tt('baseUrlHint') }}

+
+
{{ tt('urlAdmin') }}{{ baseTrim }}/admin
+
{{ tt('urlClient') }}{{ baseTrim }}/trace
+
{{ tt('admin') }}
@@ -42,8 +45,10 @@
-
-

MySQL

+

{{ tt('dbCard') }}

+ +
+
MySQL
{{ tt('testConnection') }}
@@ -52,11 +57,9 @@

{{ mysqlTest.msg }}

-
-
-
-

Redis

+
+
Redis
{{ tt('testConnection') }}
@@ -132,6 +135,8 @@ const driverOptions = computed(() => [ { label: 'OSS / S3', value: 'oss' }, ]); +const baseTrim = computed(() => (form.baseUrl || '').replace(/\/+$/, '')); + const form = reactive({ appName: tt('defaultAppName'), baseUrl: location.origin, @@ -347,6 +352,27 @@ async function submit(): Promise { font-weight: 600; color: var(--n-text-color-2, #526070); } +.sub-row { + display: flex; + align-items: center; + justify-content: space-between; + margin: 14px 0 10px; +} +.sub-row .sub { + margin: 0; +} +.urls { + margin: 6px 0 2px; + font-size: 12px; + line-height: 1.7; + color: var(--n-text-color-3, #6a7687); + word-break: break-all; +} +.urls span { + display: inline-block; + min-width: 52px; + color: var(--n-text-color-2, #526070); +} .box label { display: grid; grid-template-columns: 132px 1fr;