anxiaoxia 2 лет назад
Родитель
Сommit
1bcad43925
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/pages/Equipment/index.tsx

+ 1 - 0
src/pages/Equipment/index.tsx

@@ -351,6 +351,7 @@ const Environment: React.FC = () => {
 
   async function getDeviceStatus() {
     await queryDeviceManage().then((res) => {
+      clearTimeout(setTimer1.current);
       setTimer1.current = setTimeout(() => {
         getDeviceStatus();
       }, 8000);