src/pages/right/components/task-charts.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/pages/right/components/task-charts.jsx
@@ -14,11 +14,17 @@ const [week, setWeek] = useState(['周一', '周二', '周三', '周四', '周五', '周六', '周日']); useEffect(() => { const timer = setInterval(() => { const fetchTaskCharts = () => { getTaskCharts().then(res => { setSeriesData(res.data); setWeek(res.week); }) } fetchTaskCharts(); const timer = setInterval(() => { fetchTaskCharts(); }, 60000); return () => {