From 9367e866a55d8c5337d8dde6648fc41a73e8549e Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 09 五月 2024 11:09:40 +0800
Subject: [PATCH] #
---
src/core/warehouse.jsx | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/core/warehouse.jsx b/src/core/warehouse.jsx
index db491e0..bcaafa0 100644
--- a/src/core/warehouse.jsx
+++ b/src/core/warehouse.jsx
@@ -27,9 +27,9 @@
useEffect(() => {
const timer = setInterval(() => {
console.log('do');
- // getBoxData().then(res => {
- // setBoxData(res);
- // })
+ getBoxData().then(res => {
+ setBoxData(res);
+ })
getAgvData().then(res => {
// console.log(JSON.stringify(res))
@@ -46,7 +46,7 @@
}, INTERVAL_TIME * 1.1);
return () => {
- // clearInterval(timer);
+ clearInterval(timer);
}
}, [])
--
Gitblit v1.9.1