From b4902c47c0ffd80276ffd9cb0ea6bf6908b0420c Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@iotlink.com> Date: 星期四, 30 七月 2020 11:15:40 +0800 Subject: [PATCH] 添加数据推送, 日志管理 --- src/pages/desktop/index/components/DFrame.vue | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/pages/desktop/index/components/DFrame.vue b/src/pages/desktop/index/components/DFrame.vue index 7e78066..ae5e3ac 100644 --- a/src/pages/desktop/index/components/DFrame.vue +++ b/src/pages/desktop/index/components/DFrame.vue @@ -39,6 +39,14 @@ height: this.data.height || 512 } }, + mounted() { + window.addEventListener('message', e => { + console.log(e) + if (e.data && e.data.msg == "logout") { + location.assign("/"); + } + }) + }, methods: { closeFrame: function () { this.$store.dispatch('desktop/closeFrame', this.data); @@ -57,7 +65,7 @@ alt: this.data.title, type: "3" }); - this.refreshDock(); + //this.refreshDock(); }, refreshDock: function () { setTimeout(function () { @@ -66,7 +74,7 @@ for (let i = 0; i < dockItems.length; i++) { dockItems[i].width = 60; } - dockMask.style.width = dockItems.length * 60 + 40 + 'px'; + //dockMask.style.width = dockItems.length * 60 + 40 + 'px'; }, 10); } }, @@ -170,15 +178,17 @@ } .d-frame-title-content img { - width: 25px; - height: 25px; + width: auto; + height: 18px; position: relative; top: 3px; + margin-right: 6px; } .d-frame-title-content span { position: relative; - top: -3px; + top: -1px; + /* font-family: '榛戜綋'; */ } .d-frame-content { -- Gitblit v1.8.0