diff --git a/.env.development b/.env.development index 8b91019..d59e51c 100644 --- a/.env.development +++ b/.env.development @@ -3,4 +3,5 @@ VITE_BASE_URL='/api' # VITE_BASE_URL='http://192.168.101.7:8000' -VITE_BASE_WSURL='ws://web-tunnel.feashow.com/api' +#VITE_BASE_WSURL='ws://web-tunnel.feashow.com/api' +VITE_BASE_WSURL='/websocket' diff --git a/.env.production b/.env.production index 8805300..4c27cb7 100644 --- a/.env.production +++ b/.env.production @@ -4,4 +4,5 @@ VITE_TITLE='fateverse' VITE_BASE_URL='/api' -VITE_BASE_WSURL='ws://web-tunnel.feashow.com/api' +#VITE_BASE_WSURL='ws://web-tunnel.feashow.com/api' +VITE_BASE_WSURL='/websocket' diff --git a/Dockerfile b/Dockerfile index 6812ab8..603191f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM nginx +FROM 10.7.127.190:38080/nginx:latest RUN rm -rf /etc/nginx/conf.d/default.conf RUN rm -rf /etc/nginx/nginx.conf diff --git a/src/views/debug/index.vue b/src/views/debug/index.vue index b75cad6..740f05e 100644 --- a/src/views/debug/index.vue +++ b/src/views/debug/index.vue @@ -74,8 +74,9 @@ const handleSend = () => { dataList.value.push(data) } const initWebSocket = () => { - // let wsUrl = `ws://192.168.31.175:9000/websocket/debug/${token}/${serialNumber.value}` - let wsUrl = `ws://web-tunnel.feashow.com/api/wstunnel/websocket/debug/${token}/${serialNumber.value}` + // let wsUrl = `ws://192.168.31.176:9000/websocket/debug/${token}/${serialNumber.value}` + let wsUrl = import.meta.env.VITE_BASE_WSURL+`/${token}/${serialNumber.value}`; + // let wsUrl = `ws://web-tunnel.feashow.com/api/wstunnel/websocket/debug/${token}/${serialNumber.value}` console.log(wsUrl) socket = new WebSocket(wsUrl) //连接发生错误的回调方法 diff --git a/src/views/device-manage/index.vue b/src/views/device-manage/index.vue index 10f4cb4..b3b4fbf 100644 --- a/src/views/device-manage/index.vue +++ b/src/views/device-manage/index.vue @@ -76,19 +76,19 @@ @change="changeFanData(scope.row)"> - - - + + + + + + + + + + + + + - - - + + + + + + + + + + + + + - - - + + + + + + + + + + + + +