|
@@ -638,7 +638,7 @@ export default {
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
if (this.form.userId != undefined) {
|
|
|
- if (this.form.postIds !== '')
|
|
|
+ if (this.form.postIds !== ''&& this.form.postIds.length > 0)
|
|
|
this.form.postIds = [this.form.postIds]
|
|
|
else
|
|
|
this.form.postIds = []
|
|
@@ -648,7 +648,7 @@ export default {
|
|
|
this.getList();
|
|
|
});
|
|
|
} else {
|
|
|
- if (this.form.postIds !== '')
|
|
|
+ if (this.form.postIds !== '' && this.form.postIds.length > 0)
|
|
|
this.form.postIds = [this.form.postIds]
|
|
|
else
|
|
|
this.form.postIds = []
|