{"action":"created","issue":{"url":"https://api.github.com/repos/ermu592275254/x-chat/issues/1","repository_url":"https://api.github.com/repos/ermu592275254/x-chat","labels_url":"https://api.github.com/repos/ermu592275254/x-chat/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ermu592275254/x-chat/issues/1/comments","events_url":"https://api.github.com/repos/ermu592275254/x-chat/issues/1/events","html_url":"https://github.com/ermu592275254/x-chat/issues/1","id":294624732,"number":1,"title":"不太明白你封装的toast组件为什么分开写了一个.vue和.js文件","user":{"login":"fantasy525","id":22516157,"avatar_url":"https://avatars1.githubusercontent.com/u/22516157?v=4","gravatar_id":"","url":"https://api.github.com/users/fantasy525","html_url":"https://github.com/fantasy525","followers_url":"https://api.github.com/users/fantasy525/followers","following_url":"https://api.github.com/users/fantasy525/following{/other_user}","gists_url":"https://api.github.com/users/fantasy525/gists{/gist_id}","starred_url":"https://api.github.com/users/fantasy525/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fantasy525/subscriptions","organizations_url":"https://api.github.com/users/fantasy525/orgs","repos_url":"https://api.github.com/users/fantasy525/repos","events_url":"https://api.github.com/users/fantasy525/events{/privacy}","received_events_url":"https://api.github.com/users/fantasy525/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-06T03:58:20Z","updated_at":"2018-02-06T07:43:51Z","closed_at":null,"author_association":"NONE","body":"+ 你封装的组件为什么是分开的呢？这样有什么好处？\r\n+ 我也不明白这里为什么要这么写？\r\n```javascript \r\nimport Vue from \"vue\";\r\nconst ToastConstructor = Vue.extend(require('./toast.vue'));\r\nlet instance = new ToastConstructor().$mount('');\r\n\r\ndocument.body.appendChild(instance.$el);\r\n```\r\n翻看文档知道这里意思是想渲染在app元素之外，为什么要这么弄呢？\r\n"},"comment":{"url":"https://api.github.com/repos/ermu592275254/x-chat/issues/comments/363337486","html_url":"https://github.com/ermu592275254/x-chat/issues/1#issuecomment-363337486","issue_url":"https://api.github.com/repos/ermu592275254/x-chat/issues/1","id":363337486,"user":{"login":"fantasy525","id":22516157,"avatar_url":"https://avatars1.githubusercontent.com/u/22516157?v=4","gravatar_id":"","url":"https://api.github.com/users/fantasy525","html_url":"https://github.com/fantasy525","followers_url":"https://api.github.com/users/fantasy525/followers","following_url":"https://api.github.com/users/fantasy525/following{/other_user}","gists_url":"https://api.github.com/users/fantasy525/gists{/gist_id}","starred_url":"https://api.github.com/users/fantasy525/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fantasy525/subscriptions","organizations_url":"https://api.github.com/users/fantasy525/orgs","repos_url":"https://api.github.com/users/fantasy525/repos","events_url":"https://api.github.com/users/fantasy525/events{/privacy}","received_events_url":"https://api.github.com/users/fantasy525/received_events","type":"User","site_admin":false},"created_at":"2018-02-06T07:43:51Z","updated_at":"2018-02-06T07:43:51Z","author_association":"NONE","body":"全部写在一个不是也可以复用吗？这样写在什么情况下易于复用呢？"}}
{"actor":{"display_login":"fantasy525"}}