代码调整

This commit is contained in:
joylink_cuiweidong 2019-11-28 18:10:44 +08:00
parent 6f718903c0
commit a77d9d0781

View File

@ -69,7 +69,7 @@ export default {
}, },
validateDescription(rule, value, callback) { validateDescription(rule, value, callback) {
if (value.trim().length === 0) { if (value.trim().length === 0) {
this.formModel.description = this.formModel.name.replace(/\s/g, ''); this.formModel.description = this.formModel.description.replace(/\s/g, '');
return callback(new Error(this.$t('scriptRecord.inputScriptDescription'))); return callback(new Error(this.$t('scriptRecord.inputScriptDescription')));
} else { } else {
return callback(); return callback();