Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
wangtao
2 years ago
Commit
d951a658f4cc4e35218c65641caf715f57866158
1 parent
cb3374aa
fix: 优化展示loadding
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
hg-monitor-web-base/src/main/resources/static/vue3/src/script/http.js
hg-monitor-web-base/src/main/resources/static/vue3/src/script/http.js
View file @
d951a65
...
...
@@ -68,7 +68,9 @@ let http = {
data
:
JSON
.
stringify
(
data
),
error
:
function
(
xhr
,
textStatus
)
{
if
(
showLoadding
&&
showLoadding
==
true
)
{
loading
.
close
();
setTimeout
(()
=>
{
loading
.
close
();
},
1000
)
}
if
(
errFunc
)
{
errFunc
();
...
...
@@ -81,7 +83,9 @@ let http = {
callback
(
data
);
}
if
(
showLoadding
&&
showLoadding
==
true
)
{
loading
.
close
();
setTimeout
(()
=>
{
loading
.
close
();
},
1000
)
}
//console.log("==>", requestUrl, jqXHR, textStatus)
...
...
@@ -120,7 +124,9 @@ let http = {
data
:
data
,
error
:
function
(
xhr
,
textStatus
)
{
if
(
showLoadding
&&
showLoadding
==
true
)
{
loading
.
close
();
setTimeout
(()
=>
{
loading
.
close
();
},
1000
)
}
// console.log("==>", requestUrl, xhr, textStatus)
http
.
reqErr
(
xhr
);
...
...
@@ -135,7 +141,9 @@ let http = {
callback
(
data
);
}
if
(
showLoadding
&&
showLoadding
==
true
)
{
loading
.
close
();
setTimeout
(()
=>
{
loading
.
close
();
},
1000
)
}
//console.log("==>", requestUrl, jqXHR, textStatus)
}
...
...
@@ -165,7 +173,9 @@ let http = {
async
:
false
,
data
:
formData
,
error
:
function
(
xhr
,
textStatus
)
{
loading
.
close
();
setTimeout
(()
=>
{
loading
.
close
();
},
1000
)
// console.log("==>", requestUrl, xhr, textStatus)
http
.
reqErr
(
xhr
);
__global
.
showMsg
(
"上传失败,请您确认文件是否存在!"
,
"error"
);
...
...
Please
register
or
login
to post a comment