From b1d93dab7dd87fd87a5548b0a2185d957a6b5b51 Mon Sep 17 00:00:00 2001 From: ray <1490493387@qq.com> Date: Fri, 23 Aug 2024 22:43:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20websocket=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 5 +- src/views/demo/websocket.vue | 111 +++++++++++++++++++---------------- vite.config.ts | 3 +- 3 files changed, 64 insertions(+), 55 deletions(-) diff --git a/package.json b/package.json index a43797c5..7bcbc62d 100644 --- a/package.json +++ b/package.json @@ -57,15 +57,13 @@ "element-plus": "^2.8.0", "exceljs": "^4.4.0", "lodash-es": "^4.17.21", - "net": "^1.0.2", "nprogress": "^0.2.0", "path-browserify": "^1.0.1", "path-to-regexp": "^6.2.2", "pinia": "^2.2.2", "qs": "^6.13.0", - "sockjs-client": "1.6.1", "sortablejs": "^1.15.2", - "stompjs": "^2.3.3", + "@stomp/stompjs": "^7.0.0", "vue": "^3.4.38", "vue-i18n": "9.9.1", "vue-router": "^4.4.3" @@ -81,7 +79,6 @@ "@types/nprogress": "^0.2.3", "@types/path-browserify": "^1.0.2", "@types/qs": "^6.9.15", - "@types/sockjs-client": "^1.5.4", "@types/sortablejs": "^1.15.8", "@types/stompjs": "^2.3.9", "@typescript-eslint/eslint-plugin": "^7.18.0", diff --git a/src/views/demo/websocket.vue b/src/views/demo/websocket.vue index 483a18ed..95e4b1d6 100644 --- a/src/views/demo/websocket.vue +++ b/src/views/demo/websocket.vue @@ -30,7 +30,6 @@ 断开 - 连接状态: @@ -40,19 +39,18 @@ - + - 发送广播 - + @@ -69,7 +67,7 @@ - +
@@ -105,25 +103,21 @@
-