使用iframe实现pdf预览
<iframe id="iframeBox" allow="microphone;camera;midi;encrypted-media;" width={sizeInfo.width} height={sizeInfo.ifHeight} style={{}} frameBorder={0} src={iframeUrl} />
src配置:
https://train-fs.3.cn/pdfjs?file=pdf文件路径