From 4ae8e580b99409d4c3cb0c52f9425a7c89807f0d Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Mon, 13 Mar 2023 18:01:47 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/host/file-management/process/index.vue | 4 ++-- frontend/src/views/website/website/index.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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)" > - +