Commit 06957208 authored by 罗超's avatar 罗超

优化

parent b2a8d572
......@@ -700,15 +700,15 @@ export default {
// 等待一下,确保样式生效
await new Promise(resolve => setTimeout(resolve, 50));
const fontEmbedCSS = await htmlToImage.getFontEmbedCSS(element);
//const fontEmbedCSS = await htmlToImage.getFontEmbedCSS(element);
// 截图
const dataUrl = await htmlToImage.toJpeg(element, {
quality: 1,
quality: 0.95,
cacheBust: true,
// skipFonts: true,
skipFonts: false,
// useCors:true,
fontEmbedCSS:fontEmbedCSS
//fontEmbedCSS:fontEmbedCSS
});
element.style.margin = originalMargin;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment