Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
50a79f7a
Commit
50a79f7a
authored
Aug 28, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下载异常
parent
1a9ed372
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
download.js
src/api/system/download.js
+1
-1
index.vue
src/views/system/download/index.vue
+1
-0
No files found.
src/api/system/download.js
View file @
50a79f7a
...
@@ -19,5 +19,5 @@ export function download(id){
...
@@ -19,5 +19,5 @@ export function download(id){
// 获取文件二进制
// 获取文件二进制
export
function
downloadFileResponse
(
url
){
export
function
downloadFileResponse
(
url
){
return
axios
.
get
(
url
)
return
axios
.
get
(
url
,
{
responseType
:
'
blob
'
}
)
}
}
src/views/system/download/index.vue
View file @
50a79f7a
...
@@ -84,6 +84,7 @@ export default {
...
@@ -84,6 +84,7 @@ export default {
download
(
row
.
id
).
then
(
res
=>
{
download
(
row
.
id
).
then
(
res
=>
{
return
downloadFileResponse
(
res
.
data
)
return
downloadFileResponse
(
res
.
data
)
}).
then
(
res
=>
{
}).
then
(
res
=>
{
console
.
log
({
res
})
this
.
$download
.
download0
(
res
.
data
,
row
.
name
+
row
.
fileSuffix
,
res
.
headers
[
'
content-type
'
])
this
.
$download
.
download0
(
res
.
data
,
row
.
name
+
row
.
fileSuffix
,
res
.
headers
[
'
content-type
'
])
}).
finally
(()
=>
{
}).
finally
(()
=>
{
loading
.
close
()
loading
.
close
()
...
...
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