diff --git a/src/views/xuncha/components/inspection.vue b/src/views/xuncha/components/inspection.vue index 6408fb8..454e9a1 100644 --- a/src/views/xuncha/components/inspection.vue +++ b/src/views/xuncha/components/inspection.vue @@ -162,10 +162,10 @@ let systems = checkUserSystem(); if (systems == 'Android') { console.log('安卓结束websocket---'); - window.android.disconnect(String(props.patrolLogId)); + window.android.disconnect(String(route.query.id)); } else if (systems == 'IOS') { console.log('ios结束websocket---'); - window.webkit.messageHandlers.stopLocation.postMessage({ data: { refid: props.patrolLogId } }); + window.webkit.messageHandlers.stopLocation.postMessage({ data: { refid: route.query.id } }); } } // 开始巡检--阶段性获取经纬度变化信息 @@ -196,7 +196,7 @@ refid: AllData.patrolLogId, userName: pinias.userName, }; - console.log(AllData.PostionValue, 'AllData.PostionValue'); + // console.log(AllData.PostionValue, 'AllData.PostionValue'); }); }; /** diff --git a/src/views/xuncha/components/inspection.vue b/src/views/xuncha/components/inspection.vue index 6408fb8..454e9a1 100644 --- a/src/views/xuncha/components/inspection.vue +++ b/src/views/xuncha/components/inspection.vue @@ -162,10 +162,10 @@ let systems = checkUserSystem(); if (systems == 'Android') { console.log('安卓结束websocket---'); - window.android.disconnect(String(props.patrolLogId)); + window.android.disconnect(String(route.query.id)); } else if (systems == 'IOS') { console.log('ios结束websocket---'); - window.webkit.messageHandlers.stopLocation.postMessage({ data: { refid: props.patrolLogId } }); + window.webkit.messageHandlers.stopLocation.postMessage({ data: { refid: route.query.id } }); } } // 开始巡检--阶段性获取经纬度变化信息 @@ -196,7 +196,7 @@ refid: AllData.patrolLogId, userName: pinias.userName, }; - console.log(AllData.PostionValue, 'AllData.PostionValue'); + // console.log(AllData.PostionValue, 'AllData.PostionValue'); }); }; /** diff --git a/vite.config.js b/vite.config.js index f43437e..de062ce 100644 --- a/vite.config.js +++ b/vite.config.js @@ -10,8 +10,8 @@ const Timestamp = new Date().getTime(); //随机时间戳 // const targetUrl = 'http://192.168.16.100:7200'; //陈迁 -const targetUrl = 'http://192.168.20.52:7300'; //杨辉 -// const targetUrl = 'https://server2.wh-nf.cn:8082/prod-api'; //线上 +// const targetUrl = 'http://192.168.20.52:7300'; //杨辉 +const targetUrl = 'https://server2.wh-nf.cn:8082/prod-api'; //线上 export default defineConfig({ // 地址是和router中和ngix中配置的名称一致