hanbaoshan
2020-07-29 0876e51d0f968ce38a048a78f9ebafcb8841f9bc
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);