加载修正
This commit is contained in:
@@ -189,7 +189,7 @@ import { Client } from '@stomp/stompjs'
|
||||
// WebSocket配置 (通过Nginx代理访问网关,再到workcase服务)
|
||||
// SockJS URL (http://)
|
||||
const getWsUrl = () => {
|
||||
const token = JSON.parse(localStorage.getItem('token') || '').value || ''
|
||||
const token = localStorage.getItem('token')!
|
||||
const protocol = window.location.protocol
|
||||
const host = window.location.host
|
||||
return `${protocol}//${host}/api/urban-lifeline/workcase/ws/chat-sockjs?token=${encodeURIComponent(token)}`
|
||||
|
||||
Reference in New Issue
Block a user