优化:对请求参数进行过滤去重
parent
92ca593a3b
commit
dc939118c9
|
@ -8,7 +8,8 @@ const filterParams = function (that, array) {
|
|||
const columnKeys = arr.map(item => {
|
||||
return item.key
|
||||
})
|
||||
const newArray = [...columnKeys, array, 'id']
|
||||
let newArray = [...columnKeys, array, 'id']
|
||||
newArray = [...new Set(newArray)]
|
||||
return '{' + newArray.toString() + '}'
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue