思路: 可以使用任何方式将本地文件上传到后端得到一个地址后使用iframe直接在项目中展示出来
代码实现
<iframe
title="1"
width="100%"
height="600"
frameBorder="0"
src={`https://view.officeapps.live.com/op/view.aspx?src=${domainName}/${info.attachment_path}`}
/>
src属性后面的为文件上传之后得到的url