Commit 45b725f2 by 韩达

fix

parent c023df18
Showing with 1 additions and 1 deletions
......@@ -205,7 +205,7 @@ export default {
id: this.$route.query.purchase_id
}, true, 'blob').then(res => {
// 包装成 Blob 对象
const blob = new Blob([res.data], { type: 'application/pdf' });
const blob = new Blob([res], { type: 'application/pdf' });
// 创建 URL 对象
let pdfUrl = window.URL.createObjectURL(blob);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment