hanbaoshan
2020-08-06 24886024f56264fe5453a331bc076a52c19dc5bb
src/pages/desktop/index/components/DFrame.vue
@@ -96,7 +96,6 @@
      this.fullScreen = !this.fullScreen;
    },
    frameClick() {
      this.$store.commit('desktop/refreshFrame', this.data);
    },
    minFrame(data, e) {
@@ -105,12 +104,13 @@
      //保存当前应用快照
      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,
@@ -211,7 +211,7 @@
  width: 100% !important;
  height: 100% !important;
  left: 0 !important;
  top: 0 !important;
  top: 40px !important;
}
.d-frame .d-frame-title {