From ce969454ccffcff848a5cb76b5ead1579d225e9e Mon Sep 17 00:00:00 2001 From: jiannibang <271381693@qq.com> Date: Tue, 28 May 2024 17:00:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AF=BC=E8=88=AA=E8=BF=87=E7=A8=8B?= =?UTF-8?q?=E4=B8=AD=EF=BC=8C=E7=82=B9=E5=87=BB=E8=B5=B7=E5=A7=8B=E6=A5=BC?= =?UTF-8?q?=E5=B1=82=E5=BA=97=E9=93=BA=EF=BC=8C=E5=9C=B0=E5=9B=BE=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E4=BA=86=E8=B7=AF=E7=BA=BF=EF=BC=8C=E5=93=81=E7=89=8C?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=9C=AA=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../offline/JSON/getDevCoordinateByIP.json | 26 ++++++++++++++++++- src/views/Guide/Guide.vue | 4 +++ vue.config.js | 2 +- 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/public/static/offline/JSON/getDevCoordinateByIP.json b/public/static/offline/JSON/getDevCoordinateByIP.json index 3df26e2..6eb1916 100644 --- a/public/static/offline/JSON/getDevCoordinateByIP.json +++ b/public/static/offline/JSON/getDevCoordinateByIP.json @@ -1 +1,25 @@ -{"code":200,"msg":"success","data":{"machineCode":"GpaJWduZp-n5jLARQwIhx","machineName":"千目GO","machineTypeName":"导视","label":"windows","screenAttribute":"1920*1080横屏","building":"A栋","buildingCode":"ocRrNO47oiA3itmmdwHzm","buildingOrder":0,"floor":"L1","floorCode":"7Lxdij-Q9NnccCu2bVJMs","floorOrder":2,"ip":"192.168.56.1","mac":"0A0027000011","location":"0","angle":"0","projectCode":"project-200","regionCode":"","lensCoordinate":"","orientationCoordinate":""}} \ No newline at end of file +{ + "code": 200, + "msg": "success", + "data": { + "machineCode": "GpaJWduZp-n5jLARQwIhx", + "machineName": "千目GO", + "machineTypeName": "导视", + "label": "windows", + "screenAttribute": "1920*1080横屏", + "building": "A栋", + "buildingCode": "ocRrNO47oiA3itmmdwHzm", + "buildingOrder": 0, + "floor": "L1", + "floorCode": "7Lxdij-Q9NnccCu2bVJMs", + "floorOrder": 2, + "ip": "192.168.56.1", + "mac": "0A0027000011", + "location": "50", + "angle": "0", + "projectCode": "project-200", + "regionCode": "", + "lensCoordinate": "", + "orientationCoordinate": "" + } +} diff --git a/src/views/Guide/Guide.vue b/src/views/Guide/Guide.vue index fb215ee..3f9095a 100644 --- a/src/views/Guide/Guide.vue +++ b/src/views/Guide/Guide.vue @@ -179,6 +179,10 @@ watch(shop, nxt => { setShopInactive() } else if (nxt && initiated.value) { setShopActive(nxt) + const floor = currentBuildingFloorsList.value[floorIdx.value] + if (floor.floorOrder !== nxt.floorOrder) { + filterAboutCurrentInfo(false) + } window.Map_QM.pathNode({ floor: nxt.floorOrder, node: nxt.yaxis }) } }) diff --git a/vue.config.js b/vue.config.js index 1e2dadd..5fbaa14 100644 --- a/vue.config.js +++ b/vue.config.js @@ -27,7 +27,7 @@ module.exports = defineConfig({ .use(retina()) .loader(retina()) .options({ - retina: false //默认不转换 true: 转换 只支持1920转4K分辨率 如需互相转换 改源码 + retina: true //默认不转换 true: 转换 只支持1920转4K分辨率 如需互相转换 改源码 }) .end() },