diff --git a/.env.development b/.env.development index 945ed78..a74c806 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,6 @@ # iOS 控制服务 -VUE_APP_BASE_LOCAL=https://192.168.1.231:34567/ -# VUE_APP_BASE_LOCAL=https://127.0.0.1:34567/ +# VUE_APP_BASE_LOCAL=https://192.168.1.218:34567/ +VUE_APP_BASE_LOCAL=https://127.0.0.1:34567/ # VUE_APP_BASE_LOCAL=https://192.168.1.209:34567/ # 业务后端(开发用内网地址) diff --git a/.env.production b/.env.production index d9f23c0..f824511 100644 --- a/.env.production +++ b/.env.production @@ -1,5 +1,5 @@ # iOS 控制服务(如果生产环境也要用内网可改) -VUE_APP_BASE_LOCAL=http://127.0.0.1:34567/ +VUE_APP_BASE_LOCAL=https://127.0.0.1:34567/ # 业务后端(正式域名) VUE_APP_BASE_REMOTE=https://crawlclient.api.yolozs.com diff --git a/src/composables/useScreenStreams.js b/src/composables/useScreenStreams.js index 4ca4459..8b1a977 100644 --- a/src/composables/useScreenStreams.js +++ b/src/composables/useScreenStreams.js @@ -21,8 +21,8 @@ export function useScreenStreams(deviceInformation) { // 每台设备循环状态 const loops = new Map() // deviceId -> { timer, stopped } - const makeUrl = (port) => `http://192.168.1.231:${port}/?t=${Date.now()}` - // const makeUrl = (port) => `http://localhost:${port}/?t=${Date.now()}` + // const makeUrl = (port) => `http://192.168.1.218:${port}/?t=${Date.now()}` + const makeUrl = (port) => `http://localhost:${port}/?t=${Date.now()}` function hardCloseImg(deviceId) { const el = imgRefs.value[deviceId] diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 9cd0662..38be247 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -79,7 +79,7 @@ import { getToken, setToken, setUser, setUserPass, getUserPass } from '@/stores/ import { ElLoading, ElMessage } from 'element-plus'; import { passToken } from '@/api/ios'; -let version = ref('3.0.0'); +let version = ref('3.2.0'); onMounted(() => { diff --git a/src/views/VideoStream.vue b/src/views/VideoStream.vue index 3ffc195..aeebe32 100644 --- a/src/views/VideoStream.vue +++ b/src/views/VideoStream.vue @@ -21,8 +21,8 @@ 上传日志
- + 监听爬虫 { }) - }, 1000 * 90) + }, 1000 * 60) if (!await isAiConfig()) { @@ -1472,7 +1472,7 @@ function arrayToString(arr) { // 每台设备请求间隔(毫秒) -const REQ_GAP_MS = 5000 +const REQ_GAP_MS = 100 async function refreshNetStatus() { const list = [...(deviceInformation.value || [])]