fix:pdf显示问题

This commit is contained in:
jiewenhuang 2023-08-27 01:25:08 +08:00
parent b227494b93
commit 6c973ea2ce
2 changed files with 2 additions and 2 deletions

View File

@ -310,7 +310,7 @@ const commonContext = {
} else {
htmlStr = `
<div class="joe_pdf">
<iframe src="/themes/theme-Joe3/assets/lib/pdfjs/web/viewer.html?file=${options.src}" style="width:${options.width};height:${options.height}"></iframe>
<iframe src="${ThemeConfig.blog_url}/themes/theme-Joe3/assets/lib/pdfjs/web/viewer.html?file=${options.src}" style="width:${options.width};height:${options.height}"></iframe>
</div>`;
}
$(item).replaceWith(htmlStr);

File diff suppressed because one or more lines are too long