!481 【修复】恢复 websocket path

Merge pull request !481 from puhui999/dev-crm
pull/482/head
芋道源码 2024-07-12 11:56:41 +00:00 committed by Gitee
commit 369860a055
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 3 deletions

View File

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