修改小程序与app的兼容文件

This commit is contained in:
gaoxs
2020-04-06 17:18:09 +08:00
parent c837a94363
commit 57ae931f2d
31 changed files with 1257 additions and 1101 deletions

View File

@ -43,7 +43,9 @@ function baseRequest(options) {
const { url, params, data, login, ...option } = options
return fly.request(url, params || data, {
...option
}).then(res => {
}).then(res => {
console.log(res)
console.log(url,params,data, ...option)
const data = res.data || {};
if (res.status !== 200)
return Promise.reject({ msg: "请求失败", res, data });