fix(测试跟踪): 功能用例-添加附件是PDF格式的-上传后“预览”显示 图片内容不全

--bug=1025784 --user=白奇 【测试跟踪】功能用例-添加附件是PDF格式的-上传后“预览”显示 图片内容不全。 https://www.tapd.cn/55049933/s/1368378
This commit is contained in:
baiqi 2023-05-04 17:20:07 +08:00 committed by jianxing
parent bcf222998a
commit 12ef7823b7
3 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@ export default {
// pdf // pdf
const pdfLoadingTask = PdfJs.getDocument({ const pdfLoadingTask = PdfJs.getDocument({
url: this.pdfUrl, url: this.pdfUrl,
cMapUrl: this.cMapUrl cMapUrl: '/pdfjs-cmaps/',
cMapPacked: true
}) })
pdfLoadingTask.promise.then(pdfDoc => { pdfLoadingTask.promise.then(pdfDoc => {
if (pdfDoc && pdfViewerDom) { if (pdfDoc && pdfViewerDom) {