Commit 3c0ac995 authored by 黄奎's avatar 黄奎

页面修改

parent 000cb91e
......@@ -48,7 +48,7 @@
background-color: #E95252;
color: #fff;
font-size: 12px;
width: 80px;
width: 90px;
text-align: center;
border-radius: 4px;
cursor: pointer;
......@@ -499,7 +499,6 @@
var fileName = title + "_2023.pdf";
this.pdfLoading = true;
let urlObj = this.domainManager();
let msg = this.getPostMsg();
var ocrUrl = urlObj.ocrUrl + "/Home/DownloadFileForPdf?url=" + encodeURIComponent(path);
this.$http({
headers: {
......@@ -507,12 +506,10 @@
},
method: 'get',
url: ocrUrl,
data: {
},
data: {},
responseType: 'arraybuffer'
}).then(res => {
console.log(res, "res");
this.pdfLoading = false;
let blob = new Blob([res.data], {
type: "application/pdf"
})
......@@ -521,7 +518,6 @@
link.href = url;
link.setAttribute("download", fileName);
link.click();
this.pdfLoading = false;
}).catch(err => {
this.pdfLoading = false
})
......
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