修复小问题

This commit is contained in:
huangdeliang 2021-08-21 18:10:59 +08:00
parent f6652e1a52
commit 9a86126668

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