1、在node_modules中找到vue-pdf,src下的pdfjsWrapper.js
if ( pdfRender !== null ) { if ( canceling ) return; canceling = true; pdfRender.cancel().catch(function(err) { emitEvent('error', err); }); return; }
修改为
if ( pdfRender !== null ) { if ( canceling ) return; canceling = true; pdfRender.cancel(); return; }
标签:vue,return,undefined,canceling,pdfRender,报错,catch,pdf From: https://www.cnblogs.com/sgdkg/p/17412427.html