We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.7.0
https://github.com/vuejs/vue-router/blob/v2.7.0/src/util/route.js#L86
const routerQuery = { a: null, b: undefined } this.$router.push({name: 'routerName', query: routerQuery})
no error
throw error 'Cannot convert undefined or null to object'
i think the problem maybe in https://github.com/vuejs/vue-router/blob/v2.7.0/src/util/route.js#L86
typeof aVal === 'object' ====> Object.prototype.toString.call(aVal) === '[object Object]'
The text was updated successfully, but these errors were encountered:
Dup of some other issue, PR to fix this at #1568
Sorry, something went wrong.
No branches or pull requests
Version
2.7.0
Reproduction link
https://github.com/vuejs/vue-router/blob/v2.7.0/src/util/route.js#L86
Steps to reproduce
const routerQuery = {
a: null,
b: undefined
}
this.$router.push({name: 'routerName', query: routerQuery})
What is expected?
no error
What is actually happening?
throw error 'Cannot convert undefined or null to object'
i think the problem maybe in https://github.com/vuejs/vue-router/blob/v2.7.0/src/util/route.js#L86
typeof aVal === 'object' ====> Object.prototype.toString.call(aVal) === '[object Object]'
The text was updated successfully, but these errors were encountered: