refactor: 取消项目名称特殊字符校验

This commit is contained in:
chenjianxing 2020-07-23 16:46:28 +08:00
parent c3e54df8bb
commit 61d81a46ee
1 changed files with 1 additions and 7 deletions

View File

@ -106,13 +106,7 @@
rules: { rules: {
name: [ name: [
{required: true, message: this.$t('project.input_name'), trigger: 'blur'}, {required: true, message: this.$t('project.input_name'), trigger: 'blur'},
{min: 2, max: 25, message: this.$t('commons.input_limit', [2, 25]), trigger: 'blur'}, {min: 2, max: 25, message: this.$t('commons.input_limit', [2, 25]), trigger: 'blur'}
{
required: true,
pattern: /^(?!-)(?!.*?-$)[a-zA-Z0-9\u4e00-\u9fa5-]+$/,
message: this.$t('project.special_characters_are_not_supported'),
trigger: 'blur'
}
], ],
description: [ description: [
{max: 50, message: this.$t('commons.input_limit', [0, 50]), trigger: 'blur'} {max: 50, message: this.$t('commons.input_limit', [0, 50]), trigger: 'blur'}