From 1d0db2268bc114753f1f2b0fce056cfbaf519a64 Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期二, 10 十月 2023 11:06:22 +0800 Subject: [PATCH] 代码更新 --- src/components/index.vue | 24 ++++-------------------- 1 files changed, 4 insertions(+), 20 deletions(-) diff --git a/src/components/index.vue b/src/components/index.vue index c808db6..9848daf 100644 --- a/src/components/index.vue +++ b/src/components/index.vue @@ -1,11 +1,7 @@ <template> <div class="mapViewer"> - <leftpanel - ref="Left" - v-show="false" - /> + <leftpanel ref="Left" v-show="false" /> <bottommenu /> - <left-menu></left-menu> <viewer class="mapViewer" /> </div> </template> @@ -14,15 +10,13 @@ import viewer from "@/components/map/viewer"; import leftpanel from "@/components/left/index"; import bottommenu from "@/components/menu/bottom-menu"; -import leftMenu from "@/components/menu/leftMenu.vue"; -import vueEvents from '@/utils/vueEvent.js' + export default { name: "index", components: { viewer, leftpanel, bottommenu, - leftMenu }, data() { return { @@ -31,7 +25,6 @@ offset: "0%", tooltipInfo: "璇风◢鍚庛�傘�傘��", tooltipShow: false, - queryShow: false, }; }, mounted() { @@ -39,18 +32,9 @@ this.scale = (100 / size).toFixed(2); this.offset = "-" + ((size - 100) / 2).toFixed(2) + "%"; this.size = size + "%"; - // this.queryShow = rpc.isShow; - vueEvents.$on('queryLayer', (res) => { - this.queryShow = res - }) }, - methods: { - queryShow(res) { - this.queryShow = res; - } - }, - watch: { - }, + + watch: {}, methods: { detectZoom() { var ratio = 0, -- Gitblit v1.9.3