fix(测试计划): 导出 pdf 图片加载问题修复

This commit is contained in:
baiqi 2024-10-30 17:08:29 +08:00 committed by 刘瑞斌
parent bd43262720
commit eaf0d77abc
2 changed files with 2 additions and 1 deletions

View File

@ -49,6 +49,7 @@ export default async function exportPDF(
height: element.clientHeight,
backgroundColor: '#f9f9fe',
scale: SCALE_RATIO, // 缩放增加清晰度
useCORS: true,
});
pdf.setFont('AlibabaPuHuiTi-3-55-Regular');
pdf.setFontSize(10);

View File

@ -97,7 +97,7 @@
<div v-for="item of innerCardList" :id="`${item.value}`" :key="item.id" class="card-item mt-[16px]">
<div class="wrapper-preview-card">
<div class="flex items-center justify-between">
<div v-if="item.value !== ReportCardTypeEnum.CUSTOM_CARD" class="mb-[8px] font-medium">
<div class="mb-[8px] font-medium">
{{ t(item.label) }}
</div>
</div>