From a6f495032e2edd41f3fed538daaa40a3287e5754 Mon Sep 17 00:00:00 2001 From: ZZJ <zzjdsg2300@163.com> Date: 星期五, 15 十月 2021 17:51:32 +0800 Subject: [PATCH] 10.15bug修复 --- src/pages/desktop/index/components/DFrame.vue | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/src/pages/desktop/index/components/DFrame.vue b/src/pages/desktop/index/components/DFrame.vue index 582dcee..d985c12 100644 --- a/src/pages/desktop/index/components/DFrame.vue +++ b/src/pages/desktop/index/components/DFrame.vue @@ -8,7 +8,8 @@ v-bind:style="{left: data.leftOffset + 'px', top: data.topOffset + 'px', 'z-index': 125 + data.order, width: width + 'px', height: height + 'px'}" > <div class="d-frame-title" v-drag='fullScreen' @click="frameClick"> - <div class="d-frame-title-operation"> + <div class="icon iconfont back" @click="back"></div> + <div class="d-frame-title-operation"> <i class="icon-minus d-frame-operation-minus" @click="minFrame(data,$event)"> <img :src="`${publicPath}images/desktop/header-icon/min.png`" alt /> </i> @@ -190,6 +191,16 @@ }, + back(){ + let active = this.$store.state.desktop.minDocks + active = active.filter(item => item.highlight) + console.log(`杩斿洖${active.alt}`); + const iframeArr = document.querySelectorAll("iframe") + iframeArr.forEach(item=>{ + item.contentWindow.postMessage({msg:`杩斿洖${active[0].alt}`},"*") + }) + } + }, directives: { drag(el, binding) { @@ -303,6 +314,13 @@ z-index: 2; } +.back { + position: absolute; + cursor: pointer; + top: 8px; + left: 10px; +} + .d-frame-title-operation i { font-size: 18px; display: inline-block; -- Gitblit v1.8.0