From d6a8de9744f60c5f09f18ffe349bbc1e4fc1405c Mon Sep 17 00:00:00 2001 From: whyczyk <525500596@qq.com> Date: 星期三, 02 三月 2022 15:46:05 +0800 Subject: [PATCH] fix bug --- src/pages/exhibition.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/exhibition.vue b/src/pages/exhibition.vue index 773ebf9..73218f7 100644 --- a/src/pages/exhibition.vue +++ b/src/pages/exhibition.vue @@ -3,7 +3,7 @@ <screen-title :title="nowlayOut.appName" :bgImg="screenTitleBg" v-if="isHeader"></screen-title> <div class="pageWarp" ref="pageWarp"> <vue-draggable-resizable :w="item.w" :h="item.h" :x="item.x" :y="item.y" :parent="true" :debug="false" :snap="true" :snapTolerance="5" :draggable="false" :resizable="false" style="transition: none; will-change: transform;" v-for="(item,i) in nowlayOut.children" :key="i"> - <div @contextmenu.prevent.stop="openMenu(item,$event)" style="width:100%;height:100%;"> + <div style="width:100%;height:100%;"> <layout-box :title="item.name"> <div style="width:100%;height:100%" :id="'layout-box'+item.id" :ref="'layout-box'+item.id" v-if="isNow"></div> </layout-box> @@ -49,14 +49,14 @@ if (this.$route.query.userId) { localStorage.setItem('userId', this.$route.query.userId); } - if (this.$route.query.newPlatform) { - sessionStorage.setItem('newPlatform', this.$route.query.newPlatform); - } this.nowlayOut.appName = this.$route.query.name; if (this.$route.query.head && this.$route.query.head == 1) { this.isHeader = false } this.$nextTick(() => { + if (this.$route.query.newPlatform) { + this.$store.dispatch('app/setNewPlatform', this.$route.query.newPlatform) + } clientWidth = this.$refs.pageWarp.clientWidth; clientHeight = this.$refs.pageWarp.clientHeight; this.loadLayout(); -- Gitblit v1.9.1