|
@@ -309,11 +309,11 @@ const DataBoard: React.FC = () => {
|
|
getAreaData();
|
|
getAreaData();
|
|
userNumData();
|
|
userNumData();
|
|
getDeviceData();
|
|
getDeviceData();
|
|
- }, 10 * 60 * 1000); // 10分钟
|
|
|
|
|
|
+ }, 30 * 60 * 1000); // 30分钟
|
|
|
|
|
|
timerFun(() => {
|
|
timerFun(() => {
|
|
getRunTime();
|
|
getRunTime();
|
|
- }, 1000 * 10); // 10秒钟
|
|
|
|
|
|
+ }, 1000 * 6 * 10); // 10分钟
|
|
|
|
|
|
return () => {};
|
|
return () => {};
|
|
}, []);
|
|
}, []);
|
|
@@ -323,7 +323,7 @@ const DataBoard: React.FC = () => {
|
|
const timerId = setTimeout(() => {
|
|
const timerId = setTimeout(() => {
|
|
setDeviceTypeValue((prevValue) => (prevValue === 1 ? 2 : 1));
|
|
setDeviceTypeValue((prevValue) => (prevValue === 1 ? 2 : 1));
|
|
deviceCharts();
|
|
deviceCharts();
|
|
- }, 1000 * 30); // 30秒钟
|
|
|
|
|
|
+ }, 1000 * 6 * 10); // 10分钟
|
|
|
|
|
|
return () => {
|
|
return () => {
|
|
clearTimeout(timerId);
|
|
clearTimeout(timerId);
|
|
@@ -335,7 +335,7 @@ const DataBoard: React.FC = () => {
|
|
const timerId = setTimeout(() => {
|
|
const timerId = setTimeout(() => {
|
|
setUserTypeValue((prevValue) => (prevValue === 1 ? 2 : 1));
|
|
setUserTypeValue((prevValue) => (prevValue === 1 ? 2 : 1));
|
|
userCharts();
|
|
userCharts();
|
|
- }, 1000 * 30); // 30秒钟
|
|
|
|
|
|
+ }, 1000 * 6 * 10); // 10分钟
|
|
|
|
|
|
return () => {
|
|
return () => {
|
|
clearTimeout(timerId);
|
|
clearTimeout(timerId);
|