Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复新建网关时名称校验错误的提示文本不匹配的问题 #947

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/dashboard-front/src/language/lang.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ const lang: ILANG = {
'操作者': ['Operator'],
'未知': ['Unknown'],
'由小写字母、数字、连接符(-)组成,首字符必须是字母,长度大于3小于30个字符': ['Consists of lowercase letters, numbers, hyphens(-), the first character must be a letter, length 3 to 30'],
'由小写字母、数字、连接符(-)组成,首字符必须是小写字母,长度大于3小于30个字符': ['Consists of lowercase letters, numbers, hyphens(-), the first character must be a lowercase letter, length 3 to 30'],
'网关唯一标识,创建后不可修改': ['Unique gateway identifier, cannot be modified after creation'],
'请输入描述': ['Please input description'],
'托管方式': ['Hosting Type'],
Expand Down
2 changes: 1 addition & 1 deletion src/dashboard-front/src/views/home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ const rules = {
const reg = /^[a-z][a-z0-9-]*$/;
return reg.test(value);
},
message: '由小写字母、数字、连接符(-)组成,首字符必须是字母,长度大于3小于30个字符',
message: t('由小写字母、数字、连接符(-)组成,首字符必须是小写字母,长度大于3小于30个字符'),
trigger: 'change',
},
],
Expand Down
Loading