Browse Source

leave modal bug

master
maochaoying 2 years ago
parent
commit
d15a15c66b
  1. 8
      .env
  2. 3
      src/components/dialogs/LeaveModal.vue

8
.env

@ -1,5 +1,5 @@
# VITE_BASE_WS1_URL=ws://192.168.8.10:19001/
# VITE_BASE_WS2_URL=ws://192.168.8.10:19002/
VITE_BASE_WS1_URL=ws://192.168.8.10:19001/
VITE_BASE_WS2_URL=ws://192.168.8.10:19002/
VITE_BASE_WS1_URL=ws://127.0.0.1:19001/
VITE_BASE_WS2_URL=ws://127.0.0.1:19002/
# VITE_BASE_WS1_URL=ws://127.0.0.1:19001/
# VITE_BASE_WS2_URL=ws://127.0.0.1:19002/

3
src/components/dialogs/LeaveModal.vue

@ -32,6 +32,7 @@
<script setup>
import { useSealStore, useWebSocketStore } from '@/store'
import { airCompressor_channelCtrlJSON } from '@/mock/command'
const sealStore = useSealStore()
const websocketStore = useWebSocketStore()
@ -58,6 +59,8 @@ const handleCancel = () => {
const handleStart = () => {
//
sealStore.updateIsStartTest(false)
sealStore.updateOldAirPressure(null)
websocketStore.sendCommandMsg(airCompressor_channelCtrlJSON([1]))
//
props.hiddenLeaveModal()
if (props.clickType != -1) {

Loading…
Cancel
Save