{"action":"closed","issue":{"url":"https://api.github.com/repos/vuejs/vue-router/issues/873","repository_url":"https://api.github.com/repos/vuejs/vue-router","labels_url":"https://api.github.com/repos/vuejs/vue-router/issues/873/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue-router/issues/873/comments","events_url":"https://api.github.com/repos/vuejs/vue-router/issues/873/events","html_url":"https://github.com/vuejs/vue-router/issues/873","id":187248471,"number":873,"title":"$route.query can't use in vue-resource params.","user":{"login":"alphatr","id":1798972,"avatar_url":"https://avatars.githubusercontent.com/u/1798972?v=3","gravatar_id":"","url":"https://api.github.com/users/alphatr","html_url":"https://github.com/alphatr","followers_url":"https://api.github.com/users/alphatr/followers","following_url":"https://api.github.com/users/alphatr/following{/other_user}","gists_url":"https://api.github.com/users/alphatr/gists{/gist_id}","starred_url":"https://api.github.com/users/alphatr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphatr/subscriptions","organizations_url":"https://api.github.com/users/alphatr/orgs","repos_url":"https://api.github.com/users/alphatr/repos","events_url":"https://api.github.com/users/alphatr/events{/privacy}","received_events_url":"https://api.github.com/users/alphatr/received_events","type":"User","site_admin":false},"labels":[{"id":434933232,"url":"https://api.github.com/repos/vuejs/vue-router/labels/2.0","name":"2.0","color":"f9d0c4","default":false},{"id":70207342,"url":"https://api.github.com/repos/vuejs/vue-router/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-04T03:53:32Z","updated_at":"2016-11-13T04:03:13Z","closed_at":"2016-11-13T04:03:13Z","body":"I use $route.query in vue-resource like this:\r\n\r\n```\r\nVue.http.get('/someUrl', {query: $route.query});\r\n```\r\n\r\nand receive a `obj.hasOwnProperty is not a function` error;\r\n\r\nI find in vue-route create query by using `Object.create(null)` and this is completely blank object, no inherit hasOwnProperty method.\r\n\r\nhowever in vue-resource, it can use `obj.hasOwnProperty` in `each` function to transform the params query."}}
{"actor":{"display_login":"yyx990803"}}