diff --git a/src/assets/api.js b/src/assets/api.js index d44a4eb6..1f2ac779 100644 --- a/src/assets/api.js +++ b/src/assets/api.js @@ -31,7 +31,7 @@ const req = (method, url, params, responseType) => { export const handelResponse=(res, cb, errCb)=> { console.log(res) if (res.code == 200) { - cb(res) + cb(res.data,res.msg) } else { if (typeof errCb == 'function') { errCb()