diff --git a/src/views/mall/promotion/kefu/index.vue b/src/views/mall/promotion/kefu/index.vue index 6fb87c8b754662636a642863f51c179efe7969fa..fae88d71d315af4b8707ff887faf345c059c3c48 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 连接 */