Skip to content

$route.query can't use in vue-resource params. #873

Closed
@alphatr

Description

@alphatr

I use $route.query in vue-resource like this:

Vue.http.get('/someUrl', {query: $route.query});

and receive a obj.hasOwnProperty is not a function error;

I find in vue-route create query by using Object.create(null) and this is completely blank object, no inherit hasOwnProperty method.

however in vue-resource, it can use obj.hasOwnProperty in each function to transform the params query.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions