mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-11-04 20:28:45 +08:00 
			
		
		
		
	【修复】恢复 websocket path
This commit is contained in:
		@@ -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 连接 */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user