|
@@ -106,7 +106,7 @@ export default {
|
|
|
const obj = {};
|
|
|
const out = [];
|
|
|
centerList.map(v => {
|
|
|
- if (obj[v.platform]) {
|
|
|
+ if (obj[v.platform] >= 0) {
|
|
|
out[obj[v.platform]].data.push(v);
|
|
|
} else {
|
|
|
out.push({
|
|
@@ -115,9 +115,9 @@ export default {
|
|
|
depName: v.depName,
|
|
|
data: [v],
|
|
|
});
|
|
|
+ obj[v.platform] = out.length - 1;
|
|
|
}
|
|
|
});
|
|
|
- console.log(out);
|
|
|
this.centerList = out;
|
|
|
});
|
|
|
},
|