* VUE in vue-pdf pit **
these days to take over a new project, use the vue-pdf, I was not used to this stuff, and I have not used pdf.js
Introducing vue-pdf;
Item no problems in local test, pdf file can open the normal preview, after packing on-line ** ** accident
After the file is packaged like this, why would the extra two worker.js, files, although very puzzled, but I do not know why, this file should be packaged to static -> js folder below
In the case of cross-domain will be treated reported cross-domain error (you will not give a view of the old iron is that cors error)
** Results: **
1. The front end is indeed wrong, but I have not found out what the problem is, as the issue is also packed file directory tangle, ** please ** passing Gangster lost answer
2. Problem solved, thanks to java little brother, added global filter handle cross-domain issues in the background. Sister how to add specific front-end and I know half half Solutions