|
@@ -364,7 +364,7 @@
|
|
|
<iframe
|
|
|
class="ciyun-box"
|
|
|
width="100%"
|
|
|
- height="650px"
|
|
|
+ height="720px"
|
|
|
border="none"
|
|
|
:src="
|
|
|
'./ciyun/ciyunPrint.html?partitionKey=1&searchType=2&articleId=' +
|
|
@@ -968,12 +968,14 @@ export default {
|
|
|
const element = document.getElementById("showWaterMark");
|
|
|
const opt = {
|
|
|
margin: [2.5, 0, 2.5, 0],
|
|
|
+ useCORS: true,
|
|
|
filename: "二十一世纪英语智慧阅读平台.pdf",
|
|
|
image: { type: "jpeg", quality: 0.98 },
|
|
|
html2canvas: { scale: 2 }, // 或其他自定义设置,例如scale可以放大内容以便更容易阅读和打印。
|
|
|
jsPDF: { unit: "mm", format: "a4", orientation: "portrait" }, // A4尺寸的PDF,纵向打印。
|
|
|
};
|
|
|
html2pdf().set(opt).from(element).save();
|
|
|
+
|
|
|
setTimeout(() => {
|
|
|
this.isPrint = false;
|
|
|
}, 100);
|
|
@@ -1367,7 +1369,7 @@ export default {
|
|
|
}
|
|
|
.ciyun-box {
|
|
|
width: 870px;
|
|
|
- height: 650px;
|
|
|
+ height: 720px;
|
|
|
border: none;
|
|
|
overflow: hidden;
|
|
|
}
|