NEZ-1932 fix:endpoint编辑时引用过长的asset与module时,引用生成的name过长,给出红色提示框,保存成功
This commit is contained in:
@@ -654,7 +654,8 @@ export default {
|
|||||||
rules: {
|
rules: {
|
||||||
name: [
|
name: [
|
||||||
{ required: true, message: this.$t('validate.required'), trigger: 'change' },
|
{ 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: [
|
assetId: [
|
||||||
{ required: !(this.optionType === 'batch'), message: this.$t('validate.required'), trigger: 'change' }
|
{ required: !(this.optionType === 'batch'), message: this.$t('validate.required'), trigger: 'change' }
|
||||||
|
|||||||
Reference in New Issue
Block a user