代码调整
This commit is contained in:
parent
6f718903c0
commit
a77d9d0781
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user