Commit 58a1fe9e by wufan

feat:axios优化

parent adc98325
...@@ -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);
} }
......
...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment