From c6df06bd690486739067ee1ee7124ac66da720fb Mon Sep 17 00:00:00 2001 From: 少年 <1392120328@qq.com> Date: 星期二, 27 二月 2024 14:23:32 +0800 Subject: [PATCH] youhua --- src/components/poplayer/history2.vue | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/poplayer/history2.vue b/src/components/poplayer/history2.vue index a700c9a..cd947d5 100644 --- a/src/components/poplayer/history2.vue +++ b/src/components/poplayer/history2.vue @@ -3,7 +3,7 @@ <div class="leftBox"> <div id="mapContainer" class="mapLeft"></div> <div class="colseBtn"> - <img class="searchBtn" src="@/assets/closeinput1.png" /> + <img class="searchBtn" @click="close" src="@/assets/closeinput1.png" /> </div> <div class="listBox"> <ul> @@ -25,7 +25,7 @@ import WMTSTileGrid from "ol/tilegrid/WMTS"; import * as olProj from "ol/proj"; import XYZ from "ol/source/XYZ"; - +import store from '@/utils/store2' let view = new View({ center: olProj.fromLonLat([4.606512, 2.621472]), zoom: 12, @@ -105,6 +105,10 @@ this.tileLayer1.setSource(this.mapList.find((e) => e.id == item).value); this.currentIndex1 = index; }, + close(){ + store.setHistoryShow(false); + + } // changeRightMap(item, index) { // this.tileLayer2.setSource(this.mapList.find((e) => e.id == item).value); // this.currentIndex2 = index; @@ -127,7 +131,8 @@ z-index: 2; width: 100vw; height: 100vh; - background: rgba(0, 0, 0, 0.5); + /* background: rgba(0, 0, 0, 0.5); */ + background: #ffffff; top: 0; left: 0; } -- Gitblit v1.9.3