diff --git a/src/components/PublicComponent/PublicComponent.vue b/src/components/PublicComponent/PublicComponent.vue index e8c0064..191346e 100644 --- a/src/components/PublicComponent/PublicComponent.vue +++ b/src/components/PublicComponent/PublicComponent.vue @@ -78,11 +78,19 @@ watch(route, to => { if (to.fullPath === '/') { window?.Map_QM?.showFloor(device.value.floorOrder) const art: any = document.getElementById('mapContainer') - art.style.width = '2864px' - art.style.height = '1896px' - art.style.right = '0' - art.style.top = '0' - window.Map_QM.changeWindowResize(2864, 1896) + if (device.value.floorOrder !== 6) { + art.style.width = '2864px' + art.style.height = '1896px' + art.style.right = '0' + art.style.top = '0' + window.Map_QM.changeWindowResize(2864, 1896) + } else { + art.style.width = '2244px' + art.style.height = '1352px' + art.style.right = '690px' + art.style.top = '304px' + window.Map_QM.changeWindowResize(2244, 1352) + } if (store.currentArtName) { store.SET_CURRENT_ART_NAME('') } diff --git a/src/composables/useGuideFilterShop.ts b/src/composables/useGuideFilterShop.ts index 6af9d75..c688f8e 100644 --- a/src/composables/useGuideFilterShop.ts +++ b/src/composables/useGuideFilterShop.ts @@ -27,22 +27,19 @@ export const useGuideFilterShop = () => { floorIdx.value = floorOrder selectedShopList.value = shopList.value.filter(item => item.floorOrder === floorOrder) hideMapDialog() + const art: any = document.getElementById('mapContainer') if (floorOrder === 6) { - const art: any = document.getElementById('mapContainer') art.style.width = '2244px' art.style.height = '1352px' art.style.right = '690px' art.style.top = '304px' window.Map_QM.changeWindowResize(2244, 1352) - } else { - const art: any = document.getElementById('mapContainer') - if (art.style.width !== '2864px') { - art.style.width = '2864px' - art.style.height = '1896px' - art.style.right = '0' - art.style.top = '0' - window.Map_QM.changeWindowResize(2864, 1896) - } + } else if (art.style.width !== '2864px') { + art.style.width = '2864px' + art.style.height = '1896px' + art.style.right = '0' + art.style.top = '0' + window.Map_QM.changeWindowResize(2864, 1896) } window.Map_QM.showFloor(floorOrder) } diff --git a/src/composables/useInitMap.ts b/src/composables/useInitMap.ts index 088d799..b7b42da 100644 --- a/src/composables/useInitMap.ts +++ b/src/composables/useInitMap.ts @@ -28,6 +28,20 @@ export const useInitMap = async function () { }) }) store.SET_MAP_PARK_LIST(arr) + const art: any = document.getElementById('mapContainer') + if (device.value.floorOrder === 6) { + art.style.width = '2244px' + art.style.height = '1352px' + art.style.right = '690px' + art.style.top = '304px' + window.Map_QM.changeWindowResize(2244, 1352) + } else if (art.style.width !== '2864px') { + art.style.width = '2864px' + art.style.height = '1896px' + art.style.right = '0' + art.style.top = '0' + window.Map_QM.changeWindowResize(2864, 1896) + } }, { build: device.value?.buildingOrder ?? 0,