Home > front end >  Console vue introduced in PDF file, runtime error: localhost is not defined
Console vue introduced in PDF file, runtime error: localhost is not defined

Time:12-02

1. Vue introduced in PDF file (note: you have installed the vue - PDF plug-in), running is not an error, but I did not jump page, and console error:
(1) the console error is as follows:
ReferenceError: localhost is not defined at the eval (vuePdfNoSss. Vue? B608:6) at the Object../node_modules/vue - loader/lib/index, js? ! ./node_modules/vue - PDF/SRC/vuePdfNoSss. Vue? Vue& Type=script& Lang=js& (110) 11. Js:

The following figure


(2) install the vue - PDF


2. The code is as follows:
(1) deom with the bosses: https://www.cnblogs.com/lodadssd/p/10297989.html

(2) I direct stick:


<script>
The import PDF from 'vue - PDF'
Export the default {
Name: 'Pdf'
Components: {
PDF
},
Data () {
Return {
PdfUrl: "../assets/images/HoleLocation. PDF, "
}
}
}
</script>
` ` `

` ` `
  • Related