Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
ef98dcea
Commit
ef98dcea
authored
Jul 02, 2025
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: podus tiff下载bug修复
parent
f75b0645
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
src/views/order/podUs/index.vue
+5
-1
No files found.
src/views/order/podUs/index.vue
View file @
ef98dcea
...
@@ -1926,16 +1926,20 @@ const handleDownload = async (row: PodUsOrderListData, type: string) => {
...
@@ -1926,16 +1926,20 @@ const handleDownload = async (row: PodUsOrderListData, type: string) => {
?
filePath
+
row
.
url
?
filePath
+
row
.
url
:
`https://ps.jomalls.com/tiff/`
+
row
.
tiffUrl
:
`https://ps.jomalls.com/tiff/`
+
row
.
tiffUrl
if
(
type
===
'tiff'
)
{
window
.
open
(
url
,
'_blank'
)
tifDownloadLoading
.
value
=
false
}
else
{
const
response
=
await
fetch
(
url
)
const
response
=
await
fetch
(
url
)
if
(
!
response
.
ok
)
{
if
(
!
response
.
ok
)
{
throw
new
Error
(
'网络响应错误'
)
throw
new
Error
(
'网络响应错误'
)
}
}
const
blob
=
await
response
.
blob
()
const
blob
=
await
response
.
blob
()
const
link
=
document
.
createElement
(
'a'
)
const
link
=
document
.
createElement
(
'a'
)
link
.
href
=
URL
.
createObjectURL
(
blob
)
link
.
href
=
URL
.
createObjectURL
(
blob
)
link
.
download
=
url
?
url
.
split
(
'/'
).
pop
()
||
'download'
:
'download'
link
.
download
=
url
?
url
.
split
(
'/'
).
pop
()
||
'download'
:
'download'
link
.
click
()
link
.
click
()
}
await
batchDownloadDownloadApi
({
id
:
row
.
id
,
type
}
)
await
batchDownloadDownloadApi
({
id
:
row
.
id
,
type
}
)
ElMessage
.
success
(
'操作成功'
)
ElMessage
.
success
(
'操作成功'
)
...
...
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