|
@@ -1157,8 +1157,10 @@ export default {
|
|
|
return this.$message.warning('请点击生成规格!');
|
|
|
}
|
|
|
// 组装companyIds
|
|
|
- if (this.form.companyIds.length != 0) {
|
|
|
+ if (this.form.companyIds.length) {
|
|
|
this.form.companyIds = this.form.companyIds.join(',');
|
|
|
+ } else {
|
|
|
+ this.form.companyIds = null;
|
|
|
}
|
|
|
addOrEdit(this.form).then(response => {
|
|
|
if (response.code === 200) {
|