mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-05-10 12:47:30 +08:00
fix: 前端采用sockjs
This commit is contained in:
@@ -13,7 +13,7 @@ const connect = (token) => {
|
|||||||
|
|
||||||
const config = useRuntimeConfig()
|
const config = useRuntimeConfig()
|
||||||
const API_BASE_URL = config.public.apiBaseUrl
|
const API_BASE_URL = config.public.apiBaseUrl
|
||||||
const socketUrl = `${API_BASE_URL}/api/ws`
|
const socketUrl = `${API_BASE_URL}/api/sockjs`
|
||||||
|
|
||||||
const socket = new SockJS(socketUrl)
|
const socket = new SockJS(socketUrl)
|
||||||
const stompClient = new Client({
|
const stompClient = new Client({
|
||||||
|
|||||||
Reference in New Issue
Block a user