From a68f53be2fc862cba2a0be5e9bd39aaac96bd3ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=B5=B7=E4=B8=80=E5=88=80?= <849005670@qq.com> Date: Wed, 17 Nov 2021 15:17:28 +0800 Subject: [PATCH] Update api.js --- src/assets/api.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/assets/api.js b/src/assets/api.js index 1f2ac779..54346bef 100644 --- a/src/assets/api.js +++ b/src/assets/api.js @@ -34,7 +34,7 @@ export const handelResponse=(res, cb, errCb)=> { cb(res.data,res.msg) } else { if (typeof errCb == 'function') { - errCb() + errCb(res.msg) } } } @@ -42,6 +42,11 @@ export const handelResponse=(res, cb, errCb)=> { export const getPlanList = (params) => { return req('get', baseurl + "/plan", params) } + +//获取key批次列表 +export const getKeyList = (params) => { + return req('get', baseurl + "/keys", params) +} //获取分销商下拉菜单 export const getReSellerOption = (params) => { return req('get', baseurl + "/reseller/choice", params)