From 40e5dfaa11b4a33b739eea617798d2073b0f28a4 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Thu, 2 Mar 2023 13:35:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/global/form-rules.ts | 2 +- frontend/src/lang/modules/en.ts | 2 +- frontend/src/lang/modules/zh.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/global/form-rules.ts b/frontend/src/global/form-rules.ts index f025dd0f7..ec40c6915 100644 --- a/frontend/src/global/form-rules.ts +++ b/frontend/src/global/form-rules.ts @@ -150,7 +150,7 @@ const checkParamCommon = (rule: any, value: any, callback: any) => { if (value === '' || typeof value === 'undefined' || value == null) { callback(new Error(i18n.global.t('commons.rule.paramName'))); } else { - const reg = /^[a-zA-Z0-9]{1}[a-zA-Z0-9._-]{6,30}$/; + const reg = /^[a-zA-Z0-9]{1}[a-zA-Z0-9._-]{2,30}$/; if (!reg.test(value) && value !== '') { callback(new Error(i18n.global.t('commons.rule.paramName'))); } else { diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 6153b36cb..b784d02ef 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -136,7 +136,7 @@ export default { domain: 'domain name format error', databaseName: 'Support English, numbers, _, length 1-30', ipErr: 'IP [{0}] format error, please check', - paramName: 'Support English, numbers, .- and _, length 6-30', + paramName: 'Support English, numbers, .- and _, length 2-30', paramComplexity: 'Support English, numbers, {0}, length 6-30', }, res: { diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 7e4035635..3d02b3bb9 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -141,7 +141,7 @@ export default { domain: '域名格式错误', databaseName: '支持英文、数字、_,长度1-30', ipErr: 'IP [{0}] 格式错误,请检查', - paramName: '支持英文、数字、.-和_,长度6-30', + paramName: '支持英文、数字、.-和_,长度2-30', paramComplexity: '支持英文、数字、{0},长度6-30', paramUrlAndPort: '格式为 http(s)://(域名/ip):(端口)', }, @@ -865,7 +865,7 @@ export default { installed: '已安装', all: '全部', version: '版本', - detail: '应用详情', + detail: '参数', install: '安装', author: '作者', source: '来源',