Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
schbrain-archetype-initializer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tools
schbrain-archetype-initializer
Commits
14fe8223
Commit
14fe8223
authored
Mar 20, 2022
by
liaozan
🏀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: add loading
parent
fda4f68c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
initializer-ui/src/components/BackendStarter.vue
initializer-ui/src/components/BackendStarter.vue
+9
-4
No files found.
initializer-ui/src/components/BackendStarter.vue
View file @
14fe8223
<!--suppress JSCheckFunctionSignatures -->
<
template
>
<div
id=
"form"
class=
"form"
>
...
...
@@ -36,6 +37,7 @@
<
script
>
import
axios
from
'
../util/request
'
import
{
ElMessageBox
}
from
'
element-plus
'
export
default
{
name
:
"
BackendStarter
"
,
...
...
@@ -60,17 +62,20 @@ export default {
const
blob
=
new
Blob
([
data
])
const
link
=
document
.
createElement
(
'
a
'
);
link
.
style
.
display
=
"
none
"
;
link
.
href
=
window
.
URL
.
createObjectURL
(
blob
);
link
.
href
=
URL
.
createObjectURL
(
blob
);
link
.
download
=
fileName
;
document
.
body
.
appendChild
(
link
);
link
.
click
();
window
.
URL
.
revokeObjectURL
(
link
.
href
);
URL
.
revokeObjectURL
(
link
.
href
);
document
.
body
.
removeChild
(
link
);
},
error
=>
{
const
reader
=
new
FileReader
();
reader
.
readAsText
(
error
.
data
,
'
utf-8
'
);
reader
.
onload
=
function
(
e
)
{
alert
(
reader
.
result
)
reader
.
onload
=
function
()
{
ElMessageBox
.
alert
(
JSON
.
parse
(
reader
.
result
).
message
,
'
提示
'
,
{
confirmButtonText
:
'
确定
'
}
)
}
})
}
...
...
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