提交时,字符串拼接
this.form.manufacturer=this.form.manufacturer.join(',')//
查看详情时,将字符串转化为数组时使用split()方法,
三目运算符判断是否有值,如果有进行截取,没有赋值为空数组
this.form.manufacturer = this.form.manufacturer ? this.form.manufacturer.split(',') : ['']
提交时,字符串拼接
this.form.manufacturer=this.form.manufacturer.join(',')//
查看详情时,将字符串转化为数组时使用split()方法,
三目运算符判断是否有值,如果有进行截取,没有赋值为空数组
this.form.manufacturer = this.form.manufacturer ? this.form.manufacturer.split(',') : ['']