From e7fc203422eff505d93105bc48680a20ee43ea7d Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 24 Jul 2025 12:10:39 +0800 Subject: [PATCH] refactor: update style --- frontend/src/i18n/en.json | 3 ++- frontend/src/i18n/zh-CN.json | 3 ++- frontend/src/views/dashboard/common/ResourceGroupOpt.vue | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/i18n/en.json b/frontend/src/i18n/en.json index eb6a3563..ee534d96 100644 --- a/frontend/src/i18n/en.json +++ b/frontend/src/i18n/en.json @@ -32,6 +32,7 @@ "password_reset_successful": "Password reset successful" }, "dashboard": { + "length_limit64": "Field length must be between 1 and 64", "sort_column": "Sort field", "sort_type": "Sort type", "time": "Time", @@ -59,7 +60,7 @@ "name_desc": "Sort by Name (Descending)", "select_dashboard": "Please Select Dashboard", "view": "View", - "text": "Text", + "text": "Rich Text", "preview": "Preview", "creator": "Creator", "dashboard_id": "Dashboard ID", diff --git a/frontend/src/i18n/zh-CN.json b/frontend/src/i18n/zh-CN.json index fc11d6a4..6ceb58e2 100644 --- a/frontend/src/i18n/zh-CN.json +++ b/frontend/src/i18n/zh-CN.json @@ -34,6 +34,7 @@ "password_reset_successful": "重置密码成功" }, "dashboard": { + "length_limit64": "字段长度需要在1-64之间", "sort_column": "排序字段", "sort_type": "排序方式", "time": "时间", @@ -62,7 +63,7 @@ "select_dashboard": "请选择仪表板", "name": "名称", "view": "图表", - "text": "文本", + "text": "富文本", "preview": "预览", "creator": "创建人", "dashboard_id": "仪表板ID", diff --git a/frontend/src/views/dashboard/common/ResourceGroupOpt.vue b/frontend/src/views/dashboard/common/ResourceGroupOpt.vue index ab76de83..24da8906 100644 --- a/frontend/src/views/dashboard/common/ResourceGroupOpt.vue +++ b/frontend/src/views/dashboard/common/ResourceGroupOpt.vue @@ -95,7 +95,7 @@ const resourceFormRules = ref({ { min: 1, max: 64, - message: 'Chart limit 1-64', + message: t('dashboard.length_limit64'), trigger: 'change', }, { required: true, trigger: 'blur' },