修改小程序与app的兼容文件
This commit is contained in:
@ -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 });
|
||||
|
Reference in New Issue
Block a user