预览pdf文件
FileDownload(this.upStandFileId)
.then((res) => {
// 预览文件
const binaryData = [res.data];
const pdfUrl = window.URL.createObjectURL(
new Blob(binaryData, {
type: "application/pdf",
})
);
window.open(pdfUrl);
})
.catch(() => {
this.$message.error("查看失败");
});