Browse Source

导出成功

master
maochaoying 2 years ago
parent
commit
11ed9a431a
  1. 8
      .env
  2. 6
      src/store/modules/websocket.js

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/

6
src/store/modules/websocket.js

@ -184,6 +184,9 @@ export const useWebSocketStore = defineStore({
case 'exportUserBehaviorRecord':
settingStore.updateExportLoading(false)
const { ackcode: exportUserCode } = JSON.parse(ev.data) || {}
if (exportUserCode == 0) {
showSuccessToast('导出成功')
}
if (exportUserCode == 3000) {
showFailToast('未检测到U盘')
}
@ -195,6 +198,9 @@ export const useWebSocketStore = defineStore({
settingStore.updateExportLoading(false)
const { ackcode: disinfectionRecordCode } =
JSON.parse(ev.data) || {}
if (disinfectionRecordCode == 0) {
showSuccessToast('导出成功')
}
if (disinfectionRecordCode == 3000) {
showFailToast('未检测到U盘')
}

Loading…
Cancel
Save