Skip to content
New issue

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

query参数不支持对象吗 #11

Open
scutcl opened this issue May 22, 2018 · 7 comments
Open

query参数不支持对象吗 #11

scutcl opened this issue May 22, 2018 · 7 comments

Comments

@scutcl
Copy link

scutcl commented May 22, 2018

No description provided.

@F-loat
Copy link
Owner

F-loat commented May 22, 2018

支持的吧,使用时有什么问题吗

@scutcl
Copy link
Author

scutcl commented May 23, 2018

this.$router.push({
path: 'xxxx',
query: {
order: this.order
}
})
这个order是对象的话,页面接收不到参数

@F-loat
Copy link
Owner

F-loat commented May 23, 2018

这种目前是不支持,虽然可以支持但还是不建议这么传数据吧,vue-router 支持的话,下一版我也支持下

@Alwayslazydog
Copy link

这种目前是不支持,虽然可以支持但还是不建议这么传数据吧,vue-router 支持的话,下一版我也支持下

你好~ 想请问一哈路由现在跳转传递对象有什么建议的方法,除了vuex

@F-loat
Copy link
Owner

F-loat commented Jan 9, 2019

试试先转成字符串,不行就只能单个属性传了吧

@zjydipingxian
Copy link

image
image
页面完全收不到参数

@F-loat
Copy link
Owner

F-loat commented Apr 2, 2019

跳转后开发工具显示的路径里有参数没

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants