Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-composition-api
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
宁路鹏
vue-composition-api
Commits
10b4e563
Commit
10b4e563
authored
Jan 14, 2025
by
唐玉峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
1ce79d25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
6 deletions
+1
-6
src/utils/http.js
+1
-6
No files found.
src/utils/http.js
View file @
10b4e563
...
@@ -82,23 +82,18 @@ export default {
...
@@ -82,23 +82,18 @@ export default {
loadingInstance
=
Vue
.
prototype
.
$loading
(
loadingOption
);
loadingInstance
=
Vue
.
prototype
.
$loading
(
loadingOption
);
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
axios
axios
.
post
(
domain
+
url
,
params
,
{
.
post
(
domain
+
url
,
params
,
Object
.
assign
({},
obj
))
...
obj
,
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
status
!==
200
)
{
if
(
res
.
status
!==
200
)
{
errorMsg
(
res
.
data
);
errorMsg
(
res
.
data
);
reject
(
res
.
data
);
reject
(
res
.
data
);
return
;
return
;
}
}
loadingInstance
.
close
();
loadingInstance
.
close
();
resolve
(
res
.
data
.
data
||
res
.
data
);
resolve
(
res
.
data
.
data
||
res
.
data
);
})
})
.
catch
((
error
)
=>
{
.
catch
((
error
)
=>
{
loadingInstance
.
close
();
loadingInstance
.
close
();
errorMsg
(
error
);
errorMsg
(
error
);
reject
(
error
);
reject
(
error
);
});
});
...
...
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