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盘') }