|
@@ -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的按钮状态已初始化
|