{"action":"created","issue":{"url":"https://api.github.com/repos/kaola-fed/megalo/issues/93","repository_url":"https://api.github.com/repos/kaola-fed/megalo","labels_url":"https://api.github.com/repos/kaola-fed/megalo/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/kaola-fed/megalo/issues/93/comments","events_url":"https://api.github.com/repos/kaola-fed/megalo/issues/93/events","html_url":"https://github.com/kaola-fed/megalo/issues/93","id":392036234,"node_id":"MDU6SXNzdWUzOTIwMzYyMzQ=","number":93,"title":"在页面中引入megalo-router，保持跟vue-router一致的开发体验","user":{"login":"NextBoy","id":32335760,"node_id":"MDQ6VXNlcjMyMzM1NzYw","avatar_url":"https://avatars0.githubusercontent.com/u/32335760?v=4","gravatar_id":"","url":"https://api.github.com/users/NextBoy","html_url":"https://github.com/NextBoy","followers_url":"https://api.github.com/users/NextBoy/followers","following_url":"https://api.github.com/users/NextBoy/following{/other_user}","gists_url":"https://api.github.com/users/NextBoy/gists{/gist_id}","starred_url":"https://api.github.com/users/NextBoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NextBoy/subscriptions","organizations_url":"https://api.github.com/users/NextBoy/orgs","repos_url":"https://api.github.com/users/NextBoy/repos","events_url":"https://api.github.com/users/NextBoy/events{/privacy}","received_events_url":"https://api.github.com/users/NextBoy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-18T07:57:46Z","updated_at":"2018-12-18T10:12:18Z","closed_at":null,"author_association":"NONE","body":"# [megalo-router](https://github.com/NextBoy/megalo-router)\r\n配合网易小程序框架megalo使用的router,尽量保持与vue-router一致的开发体验，减少技术成本，方便项目从web迁移到小程序\r\n\r\n微信小程序、百度小程序、支付宝小程序通用语法，无需做适配\r\n\r\n优化megalo的分包页面的跳转写法\r\n\r\nmegalo默认的分包页面之间的跳转比较麻烦，需要写相对路径，例如\r\n例如从 home/index 跳转的到 packgeA/pages/a/index，相对路径为 ../../packgeA/pages/a/index。\r\n\r\n使用megaloRouter则没有这种烦恼，直接\r\n```js\r\n    $router.push('/packgeA/pages/a/index')\r\n```\r\n\r\n欢迎大家使用和提意见\r\nhttps://github.com/NextBoy/megalo-router"},"comment":{"url":"https://api.github.com/repos/kaola-fed/megalo/issues/comments/448167936","html_url":"https://github.com/kaola-fed/megalo/issues/93#issuecomment-448167936","issue_url":"https://api.github.com/repos/kaola-fed/megalo/issues/93","id":448167936,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODE2NzkzNg==","user":{"login":"NextBoy","id":32335760,"node_id":"MDQ6VXNlcjMyMzM1NzYw","avatar_url":"https://avatars0.githubusercontent.com/u/32335760?v=4","gravatar_id":"","url":"https://api.github.com/users/NextBoy","html_url":"https://github.com/NextBoy","followers_url":"https://api.github.com/users/NextBoy/followers","following_url":"https://api.github.com/users/NextBoy/following{/other_user}","gists_url":"https://api.github.com/users/NextBoy/gists{/gist_id}","starred_url":"https://api.github.com/users/NextBoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NextBoy/subscriptions","organizations_url":"https://api.github.com/users/NextBoy/orgs","repos_url":"https://api.github.com/users/NextBoy/repos","events_url":"https://api.github.com/users/NextBoy/events{/privacy}","received_events_url":"https://api.github.com/users/NextBoy/received_events","type":"User","site_admin":false},"created_at":"2018-12-18T10:12:18Z","updated_at":"2018-12-18T10:12:18Z","author_association":"NONE","body":"@b2nil 这个就得问官方啦。megalo官方文档是这么写的，话说$api是什么，megalo内置封装的么？"}}
{"actor":{"display_login":"NextBoy"}}