mirror of
				https://github.com/continew-org/continew-admin-ui.git
				synced 2025-11-04 08:59:22 +08:00 
			
		
		
		
	chore: 调整 WebSocket URL
This commit is contained in:
		@@ -93,7 +93,7 @@ onBeforeUnmount(() => {
 | 
			
		||||
const unreadMessageCount = ref(0)
 | 
			
		||||
// 初始化 WebSocket
 | 
			
		||||
const initWebSocket = (token: string) => {
 | 
			
		||||
  socket = new WebSocket(`${import.meta.env.VITE_API_WS_URL}/ws?token=${token}`)
 | 
			
		||||
  socket = new WebSocket(`${import.meta.env.VITE_API_WS_URL}/websocket?token=${token}`)
 | 
			
		||||
  socket.onopen = () => {
 | 
			
		||||
    // console.log('WebSocket connection opened')
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user