fix:更新更新时间
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user