From cffa0a71a4ee4bc1b68549cd30e50f1e122c16ab Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期三, 12 八月 2020 13:41:38 +0800 Subject: [PATCH] fix 统计查询样式bug --- src/pages/desktop/index/components/DFrame.vue | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pages/desktop/index/components/DFrame.vue b/src/pages/desktop/index/components/DFrame.vue index 7dcebb3..ac00319 100644 --- a/src/pages/desktop/index/components/DFrame.vue +++ b/src/pages/desktop/index/components/DFrame.vue @@ -104,18 +104,19 @@ this.$store.commit('desktop/refreshFrame', this.data); }, minFrame(data, e) { + debugger //鎵惧埌褰撳墠鐨刬frame let curIframe = Array.from(document.querySelectorAll('iframe')).find(iframe => iframe.src.indexOf(data.url) >= 0); //淇濆瓨褰撳墠搴旂敤蹇収 html2canvas(curIframe.contentWindow.document.body, { dpi: window.devicePixelRatio * 4, - //logging: true, //鏌ョ湅html2canvas鍐呴儴鎵ц娴佺▼ + logging: true, //鏌ョ湅html2canvas鍐呴儴鎵ц娴佺▼ removeContainer: true, imageTimeout: 0, - //useCORS: true //寮�鍚法鍩熼厤缃� + useCORS: true, //寮�鍚法鍩熼厤缃� + //allowTaint: true }).then(canvas => { let shotSrc = canvas.toDataURL(); - this.$store.commit('desktop/addMinDock', { id: this.data.id, src: this.data.icon, -- Gitblit v1.8.0