From 9fc4cad80e2b944e1b97b62985b30d2dd686dfc6 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Tue, 6 Jun 2023 11:33:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E4=BF=AE=E6=94=B9=20(#1266)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/api/v1/app_install.go | 2 +- frontend/src/lang/modules/en.ts | 1 + frontend/src/lang/modules/zh.ts | 3 ++- frontend/src/views/log/operation/index.vue | 6 ++++++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/backend/app/api/v1/app_install.go b/backend/app/api/v1/app_install.go index 2abd4f682..e1042a5f9 100644 --- a/backend/app/api/v1/app_install.go +++ b/backend/app/api/v1/app_install.go @@ -159,7 +159,7 @@ func (b *BaseApi) SyncInstalled(c *gin.Context) { // @Success 200 // @Security ApiKeyAuth // @Router /apps/installed/op [post] -// @x-panel-log {"bodyKeys":["installId","operate"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"installId","isList":false,"db":"app_installs","output_column":"app_id","output_value":"appId"},{"input_column":"id","input_value":"installId","isList":false,"db":"app_installs","output_column":"name","output_value":"appName"},{"input_column":"id","input_value":"appId","isList":false,"db":"apps","output_column":"key","output_value":"appKey"}],"formatZH":"[appKey] 应用 [appName] [operate]","formatEN":"[appKey] App [appName] [operate]"} +// @x-panel-log {"bodyKeys":["installId","operate"],"paramKeys":[],"BeforeFuntions":[{"input_column":"id","input_value":"installId","isList":false,"db":"app_installs","output_column":"app_id","output_value":"appId"},{"input_column":"id","input_value":"installId","isList":false,"db":"app_installs","output_column":"name","output_value":"appName"},{"input_column":"id","input_value":"appId","isList":false,"db":"apps","output_column":"key","output_value":"appKey"}],"formatZH":"[operate] 应用 [appKey][appName]","formatEN":"[operate] App [appKey][appName]"} func (b *BaseApi) OperateInstalled(c *gin.Context) { var req request.AppInstalledOperate if err := c.ShouldBindJSON(&req); err != nil { diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index fb21e2945..92499743e 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -41,6 +41,7 @@ const message = { import: 'Import', search: 'Search', refresh: 'Refresh', + get: 'Get', }, search: { timeStart: 'Time start', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 23b6b9e9c..85d7fa2b4 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -41,6 +41,7 @@ const message = { import: '导入', search: '搜索', refresh: '刷新', + get: '获取', }, search: { timeStart: '开始时间', @@ -753,7 +754,7 @@ const message = { logs: { panelLog: '面板日志', operation: '操作日志', - login: '登录日志', + login: '访问日志', loginIP: '登录 IP', loginAddress: '登录地址', loginAgent: '用户代理', diff --git a/frontend/src/views/log/operation/index.vue b/frontend/src/views/log/operation/index.vue index 88f723757..59ca42b99 100644 --- a/frontend/src/views/log/operation/index.vue +++ b/frontend/src/views/log/operation/index.vue @@ -181,6 +181,12 @@ const loadDetail = (log: string) => { if (log.indexOf('[dark]') !== -1) { log = log.replace('[dark]', '[' + i18n.global.t('setting.dark') + ']'); } + if (log.indexOf('[delete]') !== -1) { + log = log.replace('[delete]', '[' + i18n.global.t('commons.button.delete') + ']'); + } + if (log.indexOf('[get]') !== -1) { + log = log.replace('[get]', '[' + i18n.global.t('commons.button.get') + ']'); + } if (log.indexOf('[UserName]') !== -1) { return log.replace('[UserName]', '[' + i18n.global.t('setting.user') + ']'); }