From ae0bca17742ba973a9d1619ae4677ab87837bf4d Mon Sep 17 00:00:00 2001 From: puhui999 Date: Fri, 12 Jul 2024 18:06:22 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91=E6=81=A2?= =?UTF-8?q?=E5=A4=8D=20websocket=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mall/promotion/kefu/index.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/views/mall/promotion/kefu/index.vue b/src/views/mall/promotion/kefu/index.vue index 6fb87c8b..fae88d71 100644 --- a/src/views/mall/promotion/kefu/index.vue +++ b/src/views/mall/promotion/kefu/index.vue @@ -28,9 +28,7 @@ const message = useMessage() // 消息弹窗 // ======================= WebSocket start ======================= const server = ref( - (import.meta.env.VITE_BASE_URL + '/infra/ws/').replace('http', 'ws') + - '?token=' + - getAccessToken() + (import.meta.env.VITE_BASE_URL + '/infra/ws').replace('http', 'ws') + '?token=' + getAccessToken() ) // WebSocket 服务地址 /** 发起 WebSocket 连接 */