Update api.js

This commit is contained in:
北海一刀 2021-11-17 14:33:25 +08:00
parent 945b4ef9be
commit 0de75e5e69
1 changed files with 1 additions and 1 deletions

View File

@ -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()