Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9849a040
authored
Jan 16, 2025
by
zws
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加download.json()方法
parent
753e44cc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/utils/download.ts
+4
-0
No files found.
src/utils/download.ts
View file @
9849a040
...
...
@@ -33,6 +33,10 @@ const download = {
markdown
:
(
data
:
Blob
,
fileName
:
string
)
=>
{
download0
(
data
,
fileName
,
'text/markdown'
)
},
// 下载 Json 方法
json
:
(
data
:
Blob
,
fileName
:
string
)
=>
{
download0
(
data
,
fileName
,
'application/json'
)
},
// 下载图片(允许跨域)
image
:
({
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