diff --git a/src/views/scriptManage/create.vue b/src/views/scriptManage/create.vue index 61e04cfbf..d44315f53 100644 --- a/src/views/scriptManage/create.vue +++ b/src/views/scriptManage/create.vue @@ -69,7 +69,7 @@ export default { }, validateDescription(rule, value, callback) { 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'))); } else { return callback();