From 010f8d99f02d8b209ba4131acb02a79325370e6f Mon Sep 17 00:00:00 2001 From: ZLY Date: Wed, 5 Nov 2025 16:14:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(ideContainer):=20=E5=A2=9E=E5=8A=A0webSock?= =?UTF-8?q?et=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/ideContainer/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/ideContainer/index.tsx b/src/pages/ideContainer/index.tsx index 466526f..fa705fb 100644 --- a/src/pages/ideContainer/index.tsx +++ b/src/pages/ideContainer/index.tsx @@ -195,9 +195,9 @@ function IDEContainer() { const token = res.data; const protocol = window.location.protocol === 'https:' ? 'wss' : 'ws'; let wsApi = `${protocol}://${window.location.host}/ws/v1/bpms-runtime`; - // if (window.location.host.includes('localhost')) { - wsApi = `ws://192.168.5.119/ws/v1/bpms-runtime`; - // } + if (window.location.host.includes('localhost')) { + wsApi = `ws://192.168.5.119/ws/v1/bpms-runtime`; + } const uri = `${wsApi}?x-auth0-token=${token}`; ws.connect(uri); };