From 9f686e9e77168773c6c98692b539908224a91e6f Mon Sep 17 00:00:00 2001 From: jiangx <1457960500@qq.com> Date: Fri, 19 May 2023 09:30:20 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E2=99=BB=EF=B8=8F=20=E6=94=BE?= =?UTF-8?q?=E5=BC=80=E5=9C=B0=E5=9B=BE=E4=BB=A5=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/offline/JSON/getBackTime.json | 2 +- src/composables/useInitMap.ts | 32 ++++++++++----------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/public/static/offline/JSON/getBackTime.json b/public/static/offline/JSON/getBackTime.json index 55b1208..e765614 100644 --- a/public/static/offline/JSON/getBackTime.json +++ b/public/static/offline/JSON/getBackTime.json @@ -1 +1 @@ -{"code":200,"msg":"操作成功","data":[60,15]} +{"code":200,"msg":"操作成功","data":[15,15]} diff --git a/src/composables/useInitMap.ts b/src/composables/useInitMap.ts index c45299d..a803538 100644 --- a/src/composables/useInitMap.ts +++ b/src/composables/useInitMap.ts @@ -14,22 +14,22 @@ export const useInitMap = async function () { })) //初始化地图 - // window.MainMap_QM.init( - // () => { - // store.SET_MAP_STATUS(true) - // window.Map_QM.addEventListener('shop', onClickShop, false) - // window.Map_QM.renderer.domElement.addEventListener('webglcontextlost', onContextLost) - // }, - // { - // build: device.value?.buildingOrder ?? 0, - // floor: device.value.floorOrder, - // navPoint: device.value.location, - // angle: device.value.angle, - // iconUrl: delPrefixOfFacilityList, - // mapData: data, - // shopData: shopList.value.slice() - // } - // ) + window.MainMap_QM.init( + () => { + store.SET_MAP_STATUS(true) + window.Map_QM.addEventListener('shop', onClickShop, false) + window.Map_QM.renderer.domElement.addEventListener('webglcontextlost', onContextLost) + }, + { + build: device.value?.buildingOrder ?? 0, + floor: device.value.floorOrder, + navPoint: device.value.location, + angle: device.value.angle, + iconUrl: delPrefixOfFacilityList, + mapData: data, + shopData: shopList.value.slice() + } + ) } catch (error) { Message({ text: '获取地图数据失败', type: 'success' }) }