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 连接 */