{"action":"created","issue":{"url":"https://api.github.com/repos/wepyjs/wepy/issues/240","repository_url":"https://api.github.com/repos/wepyjs/wepy","labels_url":"https://api.github.com/repos/wepyjs/wepy/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/wepyjs/wepy/issues/240/comments","events_url":"https://api.github.com/repos/wepyjs/wepy/issues/240/events","html_url":"https://github.com/wepyjs/wepy/issues/240","id":240824966,"number":240,"title":"this.$redirect is not a function","user":{"login":"qiaolb","id":8615816,"avatar_url":"https://avatars3.githubusercontent.com/u/8615816?v=3","gravatar_id":"","url":"https://api.github.com/users/qiaolb","html_url":"https://github.com/qiaolb","followers_url":"https://api.github.com/users/qiaolb/followers","following_url":"https://api.github.com/users/qiaolb/following{/other_user}","gists_url":"https://api.github.com/users/qiaolb/gists{/gist_id}","starred_url":"https://api.github.com/users/qiaolb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiaolb/subscriptions","organizations_url":"https://api.github.com/users/qiaolb/orgs","repos_url":"https://api.github.com/users/qiaolb/repos","events_url":"https://api.github.com/users/qiaolb/events{/privacy}","received_events_url":"https://api.github.com/users/qiaolb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-06T02:09:52Z","updated_at":"2017-07-06T02:11:33Z","closed_at":null,"body":"我在组件中使用`$redirect`和`$navigate`时，提示错误。\r\n\r\n```\r\nthis.$redirect is not a function\r\n```\r\n\r\n```javascript\r\n    methods = {\r\n      tap () {\r\n        this.$navigate('pages/activity')\r\n      }\r\n    }\r\n```\r\n\r\n```html\r\n<template>\r\n  <view class=\"actitiy-item\" @tap=\"tap\">\r\n    ......\r\n  </view>\r\n</template>\r\n```\r\n\r\n请问是怎么回事？"},"comment":{"url":"https://api.github.com/repos/wepyjs/wepy/issues/comments/313275987","html_url":"https://github.com/wepyjs/wepy/issues/240#issuecomment-313275987","issue_url":"https://api.github.com/repos/wepyjs/wepy/issues/240","id":313275987,"user":{"login":"Gcaufy","id":2182004,"avatar_url":"https://avatars2.githubusercontent.com/u/2182004?v=3","gravatar_id":"","url":"https://api.github.com/users/Gcaufy","html_url":"https://github.com/Gcaufy","followers_url":"https://api.github.com/users/Gcaufy/followers","following_url":"https://api.github.com/users/Gcaufy/following{/other_user}","gists_url":"https://api.github.com/users/Gcaufy/gists{/gist_id}","starred_url":"https://api.github.com/users/Gcaufy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gcaufy/subscriptions","organizations_url":"https://api.github.com/users/Gcaufy/orgs","repos_url":"https://api.github.com/users/Gcaufy/repos","events_url":"https://api.github.com/users/Gcaufy/events{/privacy}","received_events_url":"https://api.github.com/users/Gcaufy/received_events","type":"User","site_admin":false},"created_at":"2017-07-06T02:11:33Z","updated_at":"2017-07-06T02:11:33Z","body":"是 Component 还是 Page， Component 中是不存在路由方法的。需要使用`this.$root.$navigate`"}}
{"actor":{"display_login":"Gcaufy"}}