From 9a86126668c640784a5105a09ea989a6ccc66595 Mon Sep 17 00:00:00 2001 From: huangdeliang Date: Sat, 21 Aug 2021 18:10:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B0=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stdiet-ui/src/components/TemplateDialog/index.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stdiet-ui/src/components/TemplateDialog/index.vue b/stdiet-ui/src/components/TemplateDialog/index.vue index 4e918a5a2..2e07ce98d 100644 --- a/stdiet-ui/src/components/TemplateDialog/index.vue +++ b/stdiet-ui/src/components/TemplateDialog/index.vue @@ -133,7 +133,9 @@ export default { this.$refs["form"].validate((valid) => { if (valid && this.checkFormat(this.form.keyWordArray)) { this.form.keyWord = - this.form.keyWordArray != null && this.form.keyWordArray.length > 0 + this.form.keyWordArray && + this.form.keyWordArray instanceof Array && + this.form.keyWordArray.length ? this.form.keyWordArray.join(",").replaceAll(",", ",") : null; // this.form.keyWord = (this.form.keyWord || "").replace(",", ",");