From 11ed9a431afcd5fe50739861c9ffc5607a2178eb Mon Sep 17 00:00:00 2001 From: maochaoying <925670706@qq.com> Date: Sun, 10 Sep 2023 19:16:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 8 ++++---- src/store/modules/websocket.js | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.env b/.env index fe3f0dd..c4ae906 100644 --- a/.env +++ b/.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/ \ No newline at end of file +VITE_BASE_WS1_URL=ws://127.0.0.1:19001/ +VITE_BASE_WS2_URL=ws://127.0.0.1:19002/ \ No newline at end of file diff --git a/src/store/modules/websocket.js b/src/store/modules/websocket.js index 308608f..b6039cc 100644 --- a/src/store/modules/websocket.js +++ b/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盘') }