如果数组对象的某个属性值为空,则过滤掉这个对象再传给后台
let queryList = this.queryList.filter((item) => {
return item.name !== ''
})
console.log('kk', queryList)
如果参数名为空,则过滤此条数据
如果数组对象的某个属性值为空,则过滤掉这个对象再传给后台
let queryList = this.queryList.filter((item) => {
return item.name !== ''
})
console.log('kk', queryList)
如果参数名为空,则过滤此条数据