refactor(数据大屏、仪表板): 资源名称长度校验修改

This commit is contained in:
wangjiahao 2024-09-10 09:46:15 +08:00
parent c38e58108a
commit 37c16dc380
2 changed files with 3 additions and 2 deletions

View File

@ -2018,6 +2018,7 @@ export default {
datasource: '数据源',
char_can_not_more_50: '不能超过50字符',
char_2_64: '2-64个字符',
char_1_64: '1-64个字符',
share_success: '分享成功',
input_id: '请输入ID',
input_pwd: '请输入密码',

View File

@ -180,9 +180,9 @@ const optInit = (type, data: BusiTreeNode, exec, parentSelect = false) => {
trigger: 'blur'
},
{
min: 2,
min: 1,
max: 64,
message: t('commons.char_2_64'),
message: t('commons.char_1_64'),
trigger: 'change'
},
{ required: true, trigger: 'blur', validator: nameValidator }