From f4a548f2a26ba9a408c678bb413bc7423acc56dd Mon Sep 17 00:00:00 2001 From: jingrow Date: Sun, 2 Nov 2025 00:58:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AE=BE=E7=BD=AE=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=8F=8A=E6=9B=B4=E6=96=B0=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/jingrow/frontend/src/locales/zh-CN.json | 5 +--- apps/jingrow/frontend/src/views/Settings.vue | 27 ++++++++++++-------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/apps/jingrow/frontend/src/locales/zh-CN.json b/apps/jingrow/frontend/src/locales/zh-CN.json index f3e990d..382c7cc 100644 --- a/apps/jingrow/frontend/src/locales/zh-CN.json +++ b/apps/jingrow/frontend/src/locales/zh-CN.json @@ -902,8 +902,7 @@ "Run Mode": "运行模式", "Environment": "环境", "Log Level": "日志级别", - "Backend": "后端配置", - "Other": "其他", + "Backend Configuration": "Backend 后端配置", "Backend Host": "后端主机", "Backend Port": "后端端口", "Backend Reload": "后端热重载", @@ -916,8 +915,6 @@ "Environment configuration saved": "环境配置已保存", "Failed to load environment configuration": "加载环境配置失败", "Failed to save environment configuration": "保存环境配置失败", - "Refresh": "刷新", - "Save": "保存", "Publish App": "发布应用", "Active": "活跃", "View detailed information about the application": "查看应用的详细信息", diff --git a/apps/jingrow/frontend/src/views/Settings.vue b/apps/jingrow/frontend/src/views/Settings.vue index 76d720b..1ee279e 100644 --- a/apps/jingrow/frontend/src/views/Settings.vue +++ b/apps/jingrow/frontend/src/views/Settings.vue @@ -117,7 +117,7 @@ - + @@ -138,16 +138,7 @@ - - - - - - - - - - + @@ -171,6 +162,15 @@ + + + + + + + + + @@ -224,6 +224,11 @@ const isAdmin = computed(() => { return user?.username === 'Administrator' || user?.id === 'Administrator' }) +// 检查是否为 local 运行模式 +const isLocalMode = computed(() => { + return envConfig.run_mode === 'local' +}) + // 环境配置 const envConfig = reactive>({}) const envConfigLoading = ref(false)