Browse Source

次数

master
maochaoying 2 years ago
parent
commit
199c576904
  1. 4
      src/components/Test.vue
  2. 1
      src/pages/Home.vue
  3. 2
      src/socket/index.js

4
src/components/Test.vue

@ -204,12 +204,12 @@ const deviceStore = useDeviceStore()
const websocketStore = useWebSocketStore()
const settingStore = useSettingStore()
const addLiquidVal = ref(300)
const addLiquidVal = ref(settingStore.addLiquidConfigVal)
const addLiquidPower = ref(25)
const numberKeyboardShowVal = ref(false)
const numberKeyboardShowPower = ref(false)
const addLiquidVal2 = ref(300)
const addLiquidVal2 = ref(settingStore.sprayLiquidConfigVal)
const addLiquidPower2 = ref(25)
const numberKeyboardShowVal2 = ref(false)
const numberKeyboardShowPower2 = ref(false)

1
src/pages/Home.vue

@ -268,6 +268,7 @@ onMounted(() => {
}, 1000)
setTimeout(() => {
webSocketStore.sendCommandMsg(getStateJSON)
webSocketStore.sendCommandMsg(getAllSettingJSON)
}, 1000)
document.addEventListener('click', e => {
let box = document.getElementById('keyboard')

2
src/socket/index.js

@ -4,7 +4,7 @@ export default class Socket {
this.protocols = protocols
this.ws = null
this.reconnectTimeout = 1000
this.maxReconnectTimes = 5
this.maxReconnectTimes = 20
}
connect() {

Loading…
Cancel
Save