zhangzengfei
2020-07-30 b4902c47c0ffd80276ffd9cb0ea6bf6908b0420c
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 {