{"action":"opened","issue":{"url":"https://api.github.com/repos/wendux/fly/issues/91","repository_url":"https://api.github.com/repos/wendux/fly","labels_url":"https://api.github.com/repos/wendux/fly/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/wendux/fly/issues/91/comments","events_url":"https://api.github.com/repos/wendux/fly/issues/91/events","html_url":"https://github.com/wendux/fly/issues/91","id":339228252,"node_id":"MDU6SXNzdWUzMzkyMjgyNTI=","number":91,"title":"在nuxt框架中，客户端使用出现问题","user":{"login":"LuDongWei","id":7650992,"node_id":"MDQ6VXNlcjc2NTA5OTI=","avatar_url":"https://avatars3.githubusercontent.com/u/7650992?v=4","gravatar_id":"","url":"https://api.github.com/users/LuDongWei","html_url":"https://github.com/LuDongWei","followers_url":"https://api.github.com/users/LuDongWei/followers","following_url":"https://api.github.com/users/LuDongWei/following{/other_user}","gists_url":"https://api.github.com/users/LuDongWei/gists{/gist_id}","starred_url":"https://api.github.com/users/LuDongWei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuDongWei/subscriptions","organizations_url":"https://api.github.com/users/LuDongWei/orgs","repos_url":"https://api.github.com/users/LuDongWei/repos","events_url":"https://api.github.com/users/LuDongWei/events{/privacy}","received_events_url":"https://api.github.com/users/LuDongWei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-08T14:00:51Z","updated_at":"2018-07-08T14:00:51Z","closed_at":null,"author_association":"NONE","body":"代码：\r\n```\r\nconst Fly = require('flyio/dist/npm/fly')\r\n\r\nlet fly = new Fly()\r\n\r\nfly.interceptors.request.use(function (request) {\r\n    return request\r\n})\r\n\r\nfly.interceptors.response.use(\r\n    (response) => {\r\n        let res = response.data\r\n\r\n        return res\r\n    }, (err) => {\r\n        console.log('err:', err)\r\n    }\r\n)\r\n\r\nexport default fly\r\n```\r\n\r\n报错： \r\n```\r\n{ ReferenceError: XMLHttpRequest is not defined\r\n    at new Fly (/Users/ludongwei/project/Unclutter Files/work/nuxt-test/node_modules/flyio/dist/npm/fly.js:176:33)\r\n    at Object.84 (core/http.js:4:0)\r\n    at __webpack_require__ (webpack:/webpack/bootstrap 2c92f4a5df9d5ced7bac:25:0)\r\n    at Object.83 (core/user.js:1:0)\r\n    at __webpack_require__ (webpack:/webpack/bootstrap 2c92f4a5df9d5ced7bac:25:0)\r\n    at Object.82 (core/index.js:1:0)\r\n    at __webpack_require__ (webpack:/webpack/bootstrap 2c92f4a5df9d5ced7bac:25:0)\r\n    at Object.65 (pages/user/login.vue?0686:1:0)\r\n    at __webpack_require__ (webpack:/webpack/bootstrap 2c92f4a5df9d5ced7bac:25:0)\r\n    at Object.57 (pages/user/login.vue:1:0)\r\n    at __webpack_require__ (webpack:/webpack/bootstrap 2c92f4a5df9d5ced7bac:25:0)\r\n    at <anonymous> statusCode: 500, name: 'ReferenceError' }\r\n```\r\n\r\n是不是fly还不支持nuxt的关系呢，其实我想来应该也是没问题的"}}
{"actor":{"display_login":"LuDongWei"}}