From a77d9d07818128468805e3226d30f6b41b104c01 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 28 Nov 2019 18:10:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/scriptManage/create.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();