NEZ-1932 fix:endpoint编辑时引用过长的asset与module时,引用生成的name过长,给出红色提示框,保存成功

This commit is contained in:
zhangyu
2022-06-15 13:50:16 +08:00
parent e1ed66c47b
commit 1e2f8dea74

View File

@@ -654,7 +654,8 @@ export default {
rules: {
name: [
{ required: true, message: this.$t('validate.required'), trigger: 'change' },
{ validator: this.optionType === 'batch' ? '' : noSpecialChar, trigger: 'change' }
{ validator: this.optionType === 'batch' ? '' : noSpecialChar, trigger: 'change' },
{ max: 64, message: this.$t('config.system.link.nameMaxLength'), trigger: 'blur' }
],
assetId: [
{ required: !(this.optionType === 'batch'), message: this.$t('validate.required'), trigger: 'change' }