From 7279365a62fe01b25c9ca5b4fa562d6a88f497cb Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Wed, 22 Jun 2022 14:25:05 +0800 Subject: [PATCH] iourl = root --- .../VideoAccess-VCMP/web/client/src/layout/actions/webSocket.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/VideoAccess-VCMP/web/client/src/layout/actions/webSocket.js b/code/VideoAccess-VCMP/web/client/src/layout/actions/webSocket.js index fa1a321..71ca171 100644 --- a/code/VideoAccess-VCMP/web/client/src/layout/actions/webSocket.js +++ b/code/VideoAccess-VCMP/web/client/src/layout/actions/webSocket.js @@ -5,6 +5,7 @@ export const INIT_WEB_SOCKET = 'INIT_WEB_SOCKET' export function initWebSocket ({ ioUrl, token }) { if (!ioUrl) { ioUrl = localStorage.getItem('apiRoot') + ioUrl = JSON.parse(ioUrl).root } if (!token) { const user = sessionStorage.getItem('user') @@ -17,6 +18,7 @@ export function initWebSocket ({ ioUrl, token }) { type: '', } } + console.log(ioUrl); return dispatch => { const socket = io(ioUrl, { query: {