| | |
| | | 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); |
| | |
| | | alt: this.data.title, |
| | | type: "3" |
| | | }); |
| | | this.refreshDock(); |
| | | //this.refreshDock(); |
| | | }, |
| | | refreshDock: function () { |
| | | setTimeout(function () { |
| | |
| | | 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); |
| | | } |
| | | }, |
| | |
| | | } |
| | | |
| | | .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 { |