diff --git a/.env.development b/.env.development index 478cc8d..c5173cd 100644 --- a/.env.development +++ b/.env.development @@ -2,8 +2,8 @@ VITE_APP_TITLE = 'SOP作业检测系统' # 后端接口地址 -VITE_API_BASE_IP = '10.23.22.43' -VITE_API_BASE_URL = 'http://${VITE_API_BASE_IP}:8188/api' +VITE_API_BASE_IP = '127.0.0.1' +VITE_API_BASE_URL = 'http://${VITE_API_BASE_IP}:8288/api' # 请求超时时间(毫秒) VITE_API_TIMEOUT = 15000 diff --git a/src/utils/fileHttp.js b/src/utils/fileHttp.js index 525a263..a14fb8b 100644 --- a/src/utils/fileHttp.js +++ b/src/utils/fileHttp.js @@ -1,5 +1,5 @@ const fileHttp = { ptApi: `${import.meta.env.VITE_API_BASE_IP}:8001`, - mesPtApi: `${import.meta.env.VITE_API_BASE_IP}:8188` + mesPtApi: `${import.meta.env.VITE_API_BASE_IP}:8288` } export default fileHttp \ No newline at end of file diff --git a/src/views/home/index.vue b/src/views/home/index.vue index c763ee2..3a16bd3 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -193,8 +193,11 @@ function connectRawStream() { break case 'webrtc_stream': - webrtcUrl.value = msg.webrtc_url - webrtcUrl2.value = msg.webrtc_url2 || msg.webrtc_url + if(msg.stream_name === 'camera2'){ + webrtcUrl.value = msg.webrtc_url + }else if(msg.stream_name === 'camera3'){ + webrtcUrl2.value = msg.webrtc_url + } addLog('已获取原始 WebRTC 流,开始播放', 'success') ElMessage.success('原始视频流已连接') break diff --git a/src/views/mes/index.vue b/src/views/mes/index.vue index 78921a4..4cfe958 100644 --- a/src/views/mes/index.vue +++ b/src/views/mes/index.vue @@ -6,7 +6,7 @@