From 677697e36b35ff80e3b45bb07a0e008fac8e9bd9 Mon Sep 17 00:00:00 2001 From: gaosp <gaosp> Date: 星期二, 16 一月 2024 23:04:55 +0800 Subject: [PATCH] update --- src/container/preview/index.vue | 12 ++++-------- 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/container/preview/index.vue b/src/container/preview/index.vue index 30e6fe2..be99c75 100644 --- a/src/container/preview/index.vue +++ b/src/container/preview/index.vue @@ -1,7 +1,7 @@ <!-- * @Date: 2024-01-05 22:26:22 * @LastEditors: Sneed - * @LastEditTime: 2024-01-13 23:03:31 + * @LastEditTime: 2024-01-16 22:54:39 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/preview/index.vue --> <template> @@ -22,14 +22,14 @@ <div class="right"> <Status v-show="id" :info="info"/> <div class="preview-map"> - <Map v-if="id" :status="2" :currentMap="currentMap" @out="out" /> + <Map v-if="id" :id="id" :status="2" :currentMap="currentMap" @out="out" /> </div> </div> </div> </div> </template> <script> - import Map from '../Map/Map.vue'; + import Map from '../mapPreview/Map.vue'; import Status from '@/components/newComp/Status' import LeftStatus from '../Map/LeftStatus.vue' import { getRequest, getUrl } from '@/api/Api' @@ -99,16 +99,12 @@ try { this.mapList = this.workshopList.filter (v => v.gridSetting && v.gridSetting!='{}') if (this.mapList.length === 0) { - this.status = 0 + this.status = 2 } this.id =this.mapList[0].id } catch (error) { console.error(error) } - }, - out () { - this.status = 2 - this.getMapList() }, }, mounted () { -- Gitblit v1.9.3