feat(ideContainer): 增加webSocket链接

master
钟良源 3 months ago
parent 9715a1d1d1
commit 010f8d99f0

@ -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')) {
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);
};

Loading…
Cancel
Save