From 3cc80b869766a0c94bb77af9d24ef9786b58f4cb Mon Sep 17 00:00:00 2001 From: zhangjiming Date: Thu, 13 Feb 2025 11:28:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95webSocket=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- src/App.vue | 9 +++++++++ src/services/socket.ts | 25 +++++++++++++++++-------- 3 files changed, 27 insertions(+), 9 deletions(-) diff --git a/.env b/.env index 4048a53..b7f7c2a 100644 --- a/.env +++ b/.env @@ -1,3 +1,3 @@ VITE_API_HOST=127.0.0.1 VITE_API_PORT=8080 -VITE_WS_PATH=/api/v1/app/ws/state \ No newline at end of file +VITE_WS_PATH=/ws \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 303b513..aa0670a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,7 @@