umijs / umi-request

A request tool based on fetch.
2.2k stars 336 forks source link

接口请求浏览器控制台耗时大概就50-100豪秒 next()耗时2-4秒 #223

Open xccxcs opened 3 years ago

xccxcs commented 3 years ago

console.log(ctx,new Date().getTime()); await next(); console.log(ctx,new Date().getTime()); {req: {…}, res: null, cache: MapCache, responseInterceptors: Array(0)} 1611565706657 {req: {…}, res: {…}, cache: MapCache, responseInterceptors: Array(0)} 1611565710263 image

返回数据 4kb左右 是个json结构 大概200条数据