1 下载依赖
npm install --save vue-pdf
2`
import pdf from 'vue-pdf'
export default {
components: {
pdf,
}},
metaInfo: {
meta: [
{
name: 'viewport', content: 'width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=2,user-scalable=yes' }
]
},