This commit is contained in:
@jyuhsin
2025-09-16 19:34:40 +08:00
parent 20fe55813f
commit 372373a26e
45 changed files with 2637 additions and 2375 deletions
@@ -36,6 +36,10 @@ module.exports = {
const doc = parser.parseFromString(this.content, 'text/html');
const link = doc.querySelector('a');
const href = link.getAttribute('href');
if(!href) {
this.pdf = false
return
}
this.$nextTick(() => {
this.pdfObj = new Pdfh5('#pdf-container', {
pdfurl: href,