Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
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
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
58a1fe9e
Commit
58a1fe9e
authored
Dec 01, 2020
by
wufan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:axios优化
parent
adc98325
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/common/js/service.ts
+2
-2
src/data-source/store/request-apis.ts
+2
-2
No files found.
src/common/js/service.ts
View file @
58a1fe9e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Author: 吴文洁
* @Date: 2020-08-31 09:34:51
* @Date: 2020-08-31 09:34:51
* @LastEditors: wufan
* @LastEditors: wufan
* @LastEditTime: 2020-12-01 15:
25:58
* @LastEditTime: 2020-12-01 15:
30:03
* @Description:
* @Description:
* @Copyright: 杭州杰竞科技有限公司 版权所有
* @Copyright: 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -27,7 +27,7 @@ class Service {
...
@@ -27,7 +27,7 @@ class Service {
return
Axios
.
post
(
'POST'
,
`sales/
${
url
}
`
,
params
,
option
);
return
Axios
.
post
(
'POST'
,
`sales/
${
url
}
`
,
params
,
option
);
}
}
static
postJSON
(
url
:
string
,
params
:
any
,
option
:
any
)
{
static
postJSON
(
url
:
string
,
params
:
any
,
option
?
:
any
)
{
return
Axios
.
post
(
'POST'
,
url
,
params
,
option
);
return
Axios
.
post
(
'POST'
,
url
,
params
,
option
);
}
}
...
...
src/data-source/store/request-apis.ts
View file @
58a1fe9e
...
@@ -2,14 +2,14 @@
...
@@ -2,14 +2,14 @@
* @Author: wufan
* @Author: wufan
* @Date: 2020-11-25 18:25:02
* @Date: 2020-11-25 18:25:02
* @LastEditors: wufan
* @LastEditors: wufan
* @LastEditTime: 2020-12-01 15:
26:12
* @LastEditTime: 2020-12-01 15:
30:16
* @Description: Description
* @Description: Description
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
import
Service
from
"@/common/js/service"
;
import
Service
from
"@/common/js/service"
;
export
function
getEmployeeList
(
params
:
object
)
{
export
function
getEmployeeList
(
params
:
object
)
{
return
Service
.
Apollo
(
"
public/businessMicroWebsite/getMicroWebsiteCouponList"
,
params
);
return
Service
.
postJSON
(
"appolo/
public/businessMicroWebsite/getMicroWebsiteCouponList"
,
params
);
}
}
export
function
getUserList
(
params
:
object
)
{
export
function
getUserList
(
params
:
object
)
{
...
...
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