Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
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
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
zhaochengxiang
szse
Commits
c338435f
Commit
c338435f
authored
May 24, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
af85507b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
download.ts
src/util/Component/download.ts
+2
-1
axios.js
src/util/axios.js
+0
-3
No files found.
src/util/Component/download.ts
View file @
c338435f
...
@@ -6,7 +6,8 @@ export default function (res: AxiosResponse<any>) {
...
@@ -6,7 +6,8 @@ export default function (res: AxiosResponse<any>) {
let
tempName
=
headers
[
"content-disposition"
]
let
tempName
=
headers
[
"content-disposition"
]
?.
split
(
";"
)?.[
1
]
?.
split
(
";"
)?.[
1
]
?.
split
(
"filename="
)?.[
1
];
?.
split
(
"filename="
)?.[
1
]?.
split
(
"."
)?.[
0
].
replace
(
/"/g
,
""
);
tempName
=
decodeURI
(
tempName
);
tempName
=
decodeURI
(
tempName
);
// const blob = new Blob([content], { type: 'application/octet-stream' })
// const blob = new Blob([content], { type: 'application/octet-stream' })
...
...
src/util/axios.js
View file @
c338435f
...
@@ -198,9 +198,6 @@ export const callFetchRaw = (method, url, options) => {
...
@@ -198,9 +198,6 @@ export const callFetchRaw = (method, url, options) => {
bodyFormData
.
append
(
key
,
params
[
key
]);
bodyFormData
.
append
(
key
,
params
[
key
]);
});
});
console
.
log
(
'options'
,
options
)
console
.
log
(
'reqConfig'
,
reqConfig
)
return
axios
.
request
({
return
axios
.
request
({
method
,
method
,
url
,
url
,
...
...
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