Commit 99f0480f authored by jingnan's avatar jingnan 👀

实物构型管理预览bug修改

parent b8bd2023
<!-- <!--
* @LastEditTime: 2024-07-12 18:03:48 * @LastEditTime: 2024-11-27 15:55:42
* @Description: 架次实物构型-预览 * @Description: 架次实物构型-预览
--> -->
<template> <template>
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</template> </template>
<script> <script>
import { get } from '@/utils/http' import { downloadFile } from '@/utils/http'
export default { export default {
name: 'Preview', name: 'Preview',
data() { data() {
...@@ -32,7 +32,7 @@ export default { ...@@ -32,7 +32,7 @@ export default {
return return
} }
this.showTitle = false this.showTitle = false
get(`ExtProcessPlan/createPDF?id=${id}`).then((res) => { downloadFile(`/ExtProcessPlan/createPDF?id=${id}`, 'get').then((res) => {
const blob = new Blob([res.data], { const blob = new Blob([res.data], {
type: 'application/pdf' type: 'application/pdf'
}) })
......
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 to comment