wendux / fly

:rocket: Supporting request forwarding and Promise based HTTP client for all JavaScript runtimes.
https://wendux.github.io/dist/#/language
MIT License
3.9k stars 639 forks source link

请求结束拦截器不起作用? #120

Closed yundGo closed 6 years ago

yundGo commented 6 years ago
let Fly = require("flyio/dist/npm/wx") 
const request = new Fly

request.interceptors.response.use(
  (response, promise) => {
    console.log(111);
    return promise.resolve(response.data)
  },
  (err, promise) => {
    console.log(222);
    return promise.resolve()
  }
)

请求开始到结束都没有打印出任何东西,请问这是哪里出错了吗? 这是请求结果 wx20180823-231356

yundGo commented 6 years ago

我重启电脑就有了。不知道什么情况。