会议结束

This commit is contained in:
2025-12-27 17:57:08 +08:00
parent 0fb7a4ffb2
commit 50df8495c7
2 changed files with 33 additions and 17 deletions

View File

@@ -185,7 +185,7 @@ import { Client } from '@stomp/stompjs'
// WebSocket配置 (通过Nginx代理访问网关再到workcase服务)
// SockJS URL (http://)
const getWsUrl = () => {
const token = localStorage.getItem('token') || ''
const token = JSON.parse(localStorage.getItem('token')).value || ''
const protocol = window.location.protocol
const host = window.location.host
return `${protocol}//${host}/api/urban-lifeline/workcase/ws/chat-sockjs?token=${encodeURIComponent(token)}`