数组对象按某属性去重
uniqueFun(arr, type) { const res = new Map(); return arr.filter((a) => !res.has(a[type]) && res.set(a[type], 1)); },