Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
柳 佳乐
finance
Commits
743d1e85
Commit
743d1e85
authored
Nov 17, 2022
by
cx49085
Browse files
编辑下合同编号不能修改
parent
c34b7f30
Changes
1
Show whitespace changes
Inline
Side-by-side
src/utils/download.js
View file @
743d1e85
...
@@ -31,7 +31,7 @@ export const previewPDF = async (filename) => {
...
@@ -31,7 +31,7 @@ export const previewPDF = async (filename) => {
const
a
=
document
.
createElement
(
"
a
"
);
//创建一个<a></a>标签
const
a
=
document
.
createElement
(
"
a
"
);
//创建一个<a></a>标签
// a.href = url; // 给a标签的href属性值加上地址,注意,这里是绝对路径,不用加 点.
// a.href = url; // 给a标签的href属性值加上地址,注意,这里是绝对路径,不用加 点.
a
.
href
=
(
await
getFileUrl
(
filename
)).
data
a
.
href
=
(
await
getFileUrl
(
filename
)).
data
debugger
//
debugger
a
.
target
=
"
_blank
"
;
a
.
target
=
"
_blank
"
;
a
.
style
.
display
=
"
none
"
;
// 障眼法藏起来a标签
a
.
style
.
display
=
"
none
"
;
// 障眼法藏起来a标签
document
.
body
.
appendChild
(
a
);
// 将a标签追加到文档对象中
document
.
body
.
appendChild
(
a
);
// 将a标签追加到文档对象中
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment