Browse Source

fix: 下发实效

anxiaoxia 1 week ago
parent
commit
07441d5908
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/envmonitor/taiguv1/components/Air/AirMore.vue

+ 3 - 3
src/views/envmonitor/taiguv1/components/Air/AirMore.vue

@@ -144,8 +144,8 @@ import SwitchButton from "@/components/switch-button/SwitchButton.vue"
 import useDeviceControl from "@/hooks/useDeviceControl"
 import { useStore } from "@/store"
 import eventBus from "@/utils/eventBus"
-let closeUpdate = false
 import { computed, nextTick, onMounted, onUnmounted, ref, watch } from "vue"
+let closeUpdate = false
 const emit = defineEmits(["getStatus"])
 const controlBtn = ref([])
 const store = useStore()
@@ -316,8 +316,8 @@ const setAirStatus = type => {
   })
 }
 
-const debouncedSetAirStatus = deviceControl.debounce(setAirStatus, 1500)
-const debouncedSigleAirChange = deviceControl.debounce(sigleAirChange, 1500)
+const debouncedSetAirStatus = deviceControl.debounce(setAirStatus, 20)
+const debouncedSigleAirChange = deviceControl.debounce(sigleAirChange, 20)
 
 const handle = (type, data, all) => {
   // 确保该item的按钮状态已初始化