fix:更新更新时间

This commit is contained in:
2025-01-03 16:08:59 +08:00
parent 64a34cc63d
commit a2c10eb54d
5 changed files with 20 additions and 11 deletions

View File

@@ -54,7 +54,7 @@
// 获取数据并更新图表
function fetchDataAndUpdateChart() {
fetch('/api/stream/ordernamecount') // 替换为你的实际API地址
fetch('/api/stream/ordernamecount')
.then(response => response.json())
.then(data => {
// 统计每个订单名称的数量
@@ -82,7 +82,7 @@
}
// 每5秒更新一次数据
setInterval(fetchDataAndUpdateChart, 5000);
setInterval(fetchDataAndUpdateChart, 10000);
// 初始数据加载
fetchDataAndUpdateChart();