门户网站建设工作总结,网站建设安全与威胁,广东省公共资源交易中心地址,wordpress小程序小白1、首先先将 pdfjs-2.8.335-dist 文件夹从网上搜索下载#xff0c;复制到public文件夹下. 2、在components下新建组件PdfViewer.vue文件
3、在el-upload 中调用 pdf-viewer 组件 4、在el-upload 中的 on-preview方法中加上对应的src路径 internalPreview(file) {
//判断需要…1、首先先将 pdfjs-2.8.335-dist 文件夹从网上搜索下载复制到public文件夹下. 2、在components下新建组件PdfViewer.vue文件
3、在el-upload 中调用 pdf-viewer 组件 4、在el-upload 中的 on-preview方法中加上对应的src路径 internalPreview(file) {
//判断需要预览的地方加 props—pdfView if(this.pdfView){ let baseApi process.env.VUE_APP_BASE_API; let _path file?.path; this.src ${baseApi}${_path} }
}