| | |
| | | this.fullScreen = !this.fullScreen; |
| | | }, |
| | | frameClick() { |
| | | |
| | | this.$store.commit('desktop/refreshFrame', this.data); |
| | | }, |
| | | minFrame(data, e) { |
| | |
| | | //保存当前应用快照 |
| | | html2canvas(curIframe.contentWindow.document.body, { |
| | | dpi: window.devicePixelRatio * 4, |
| | | logging: true, //查看html2canvas内部执行流程 |
| | | //logging: true, //查看html2canvas内部执行流程 |
| | | removeContainer: true, |
| | | imageTimeout: 0, |
| | | useCORS: true //开启跨域配置 |
| | | }).then(canvas => { |
| | | let shotSrc = canvas.toDataURL(); |
| | | |
| | | this.$store.commit('desktop/addMinDock', { |
| | | id: this.data.id, |
| | | src: this.data.icon, |
| | |
| | | width: 100% !important; |
| | | height: 100% !important; |
| | | left: 0 !important; |
| | | top: 0 !important; |
| | | top: 40px !important; |
| | | } |
| | | |
| | | .d-frame .d-frame-title { |