<template>
|
<div class="wrapper" >
|
<WorkMap
|
:weatherShow="true"
|
:layerShow="true"
|
:locationShow="true"
|
:workNavigationShow="true"
|
:mapCurrentDetail="mapCurrentDetail"
|
>
|
</WorkMap>
|
</div>
|
</template>
|
|
<script setup>
|
import WorkMap from '@/appComponents/workMap/index.vue'
|
import { useRoute } from 'vue-router'
|
import { useStore } from 'vuex'
|
const store = useStore()
|
const userInfo = computed(() => store?.state?.user?.userInfo)
|
const route = useRoute()
|
const mapCurrentDetail = ref({})
|
onMounted(async () => {
|
// mapCurrentDetail.value = JSON.parse(decodeURIComponent(route.query.currentItem))
|
mapCurrentDetail.value = JSON.parse(route.query.currentItem)
|
|
})
|
</script>
|
|
<style lang="scss" scoped>
|
.wrapper {
|
width: 100%;
|
height: 100%;
|
}
|
</style>
|