diff --git a/frontend/src/views/host/file-management/process/index.vue b/frontend/src/views/host/file-management/process/index.vue index cc3491c9c..881a268e6 100644 --- a/frontend/src/views/host/file-management/process/index.vue +++ b/frontend/src/views/host/file-management/process/index.vue @@ -63,8 +63,8 @@ const onClose = () => {}; const initProcess = () => { let href = window.location.href; let protocol = href.split('//')[0] === 'http:' ? 'ws' : 'wss'; - // let ipLocal = href.split('//')[1].split('/')[0]; - processSocket = new WebSocket(`${protocol}://localhost:9999/api/v1/files/ws`); + let ipLocal = href.split('//')[1].split('/')[0]; + processSocket = new WebSocket(`${protocol}://${ipLocal}/api/v1/files/ws`); processSocket.onopen = onOpenProcess; processSocket.onmessage = onMessage; processSocket.onerror = onerror; diff --git a/frontend/src/views/website/website/index.vue b/frontend/src/views/website/website/index.vue index e3ba24ed7..4d7623960 100644 --- a/frontend/src/views/website/website/index.vue +++ b/frontend/src/views/website/website/index.vue @@ -82,7 +82,7 @@ :underline="false" @click="openConfig(row.id)" > - +