review:【antd】【iot】首页的迁移

This commit is contained in:
YunaiV
2025-11-23 18:51:16 +08:00
parent a32ff4a9c9
commit 42697ec614
9 changed files with 49 additions and 77 deletions

View File

@@ -35,11 +35,10 @@ async function initChart() {
}
await nextTick();
const data = Object.entries(
props.statsData.productCategoryDeviceCounts,
).map(([name, value]) => ({ name, value }));
renderEcharts(getDeviceCountPieChartOptions(data));
const data = Object.entries(props.statsData.productCategoryDeviceCounts).map(
([name, value]) => ({ name, value }),
);
await renderEcharts(getDeviceCountPieChartOptions(data));
}
/** 监听数据变化 */