Commit 4c150e49 by xujie

feat: 更新代码

parent 52c2df09
File mode changed from 100644 to 100755
No preview for this file type
File mode changed from 100644 to 100755
No preview for this file type
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
File mode changed from 100644 to 100755
...@@ -103,6 +103,7 @@ import { ...@@ -103,6 +103,7 @@ import {
MOUSE_STATUS, MOUSE_STATUS,
NOTIFY_MOUSE_CONNECT NOTIFY_MOUSE_CONNECT
} from '../../../../../eventCenter/constant' } from '../../../../../eventCenter/constant'
import { debounce } from "lodash";
const isNavigatorTool = ref(false) const isNavigatorTool = ref(false)
const sliderMaker = ref({}) const sliderMaker = ref({})
...@@ -181,7 +182,7 @@ const getInfo = async (res) => { ...@@ -181,7 +182,7 @@ const getInfo = async (res) => {
// console.log('getInfo', res) // console.log('getInfo', res)
} }
const handleSetDpi = async () => { const setCPI = async () => {
try { try {
await RSEvent.call(MOUSE_SET_DPI, dpi.value) await RSEvent.call(MOUSE_SET_DPI, dpi.value)
message.success('设置成功') message.success('设置成功')
...@@ -189,6 +190,8 @@ const handleSetDpi = async () => { ...@@ -189,6 +190,8 @@ const handleSetDpi = async () => {
message.error('设置失败') message.error('设置失败')
} }
} }
const handleSetDpi = debounce(setCPI, 800)
</script> </script>
<style lang="scss"> <style lang="scss">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment