|
@@ -1049,7 +1049,6 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
getImg() {
|
|
|
- debugger;
|
|
|
var iframeHtml;
|
|
|
let iframeBody;
|
|
|
if (this.toolsList[0].tools[this.howTools] == 1) {
|
|
@@ -1059,7 +1058,7 @@ export default {
|
|
|
} else if (this.toolsList[0].tools[this.howTools] == 7) {
|
|
|
iframeHtml = this.$refs.grid;
|
|
|
}
|
|
|
- iframeBody = iframeHtml.contentWindow.body;
|
|
|
+ iframeBody = iframeHtml.contentWindow.docunment.body;
|
|
|
// 第一个参数是需要生成截图的元素,第二个是自己需要配置的参数,宽高等
|
|
|
html2canvas(iframeBody, {
|
|
|
backgroundColor: null, //画出来的图片有白色的边框,不要可设置背景为透明色(null)
|