Browse Source

fix: 风量

anxiaoxia 1 week ago
parent
commit
0f36d0c18e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/envmonitor/taiguv1/components/Air/index.vue

+ 2 - 2
src/views/envmonitor/taiguv1/components/Air/index.vue

@@ -78,7 +78,7 @@ import useDeviceControl from "@/hooks/useDeviceControl"
 import { useStore } from "@/store"
 import { parseImgUrl } from "@/utils"
 import eventBus from "@/utils/eventBus"
-import { computed, onMounted, onUnmounted, nextTick, ref, watch } from "vue"
+import { computed, nextTick, onMounted, onUnmounted, ref, watch } from "vue"
 let closeUpdate = false
 const store = useStore()
 const deviceControl = useDeviceControl()
@@ -241,7 +241,7 @@ const setAirStatus = type => {
 
   emit("getStatus", airData.value.isOpen)
 }
-const debouncedSetAirStatus = deviceControl.debounce(setAirStatus, 1500)
+const debouncedSetAirStatus = deviceControl.debounce(setAirStatus, 20)
 const handle = type => {
   if (!airData.value.gear) airData.value.gear = 1
   sendEvent(true)