Browse Source

【修复】恢复 websocket path

puhui999 11 tháng trước cách đây
mục cha
commit
ae0bca1774
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  1. 1 3
      src/views/mall/promotion/kefu/index.vue

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