this.tablelist1 = res.data.data.reduce(
(item, next) => {
if (!item.find(v => v.lngShopID == next.lngShopID)) {
item.push(next);
}
return item;
}, []);
同一個shopid只取第一條.
this.tablelist1 = res.data.data.reduce(
(item, next) => {
if (!item.find(v => v.lngShopID == next.lngShopID)) {
item.push(next);
}
return item;
}, []);
同一個shopid只取第一條.