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)