Showing
1 changed file
with
0 additions
and
5 deletions
... | ... | @@ -7,8 +7,6 @@ |
7 | 7 | import { useComponentScale } from '../../../hook/useComponentScale'; |
8 | 8 | import { DeviceName } from '/@/views/visual/commonComponents/DeviceName'; |
9 | 9 | import { useSendCommand } from '../../../hook/useSendCommand'; |
10 | - // import { useDebounceFn } from '@vueuse/core'; | |
11 | - // import { simpleDebounce } from '/@/utils/common/compUtils'; | |
12 | 10 | import { useReceiveValue } from '../../../hook/useReceiveValue'; |
13 | 11 | |
14 | 12 | const props = defineProps<{ |
... | ... | @@ -38,7 +36,6 @@ |
38 | 36 | const index = ref<number>(0); |
39 | 37 | |
40 | 38 | const handleChange = async (e) => { |
41 | - console.log(e); | |
42 | 39 | index.value++; |
43 | 40 | if (index.value == 1) { |
44 | 41 | oldSliderValue.value = unref(sliderValue); |
... | ... | @@ -46,8 +43,6 @@ |
46 | 43 | sliderValue.value = e; |
47 | 44 | }; |
48 | 45 | |
49 | - // const debounceChanage = useDebounceFn(handleChange, 1); | |
50 | - | |
51 | 46 | const handleAfterChange = async (e) => { |
52 | 47 | const flag = await sendCommand(props.config.option, unref(sliderValue)); |
53 | 48 | flag | ... | ... |