!354 修复小问题

Merge pull request !354 from 德仔/develop
This commit is contained in:
德仔 2021-08-21 10:19:01 +00:00 committed by Gitee
commit c99220e535

View File

@ -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("", ",");