mpvue-router-patch icon indicating copy to clipboard operation
mpvue-router-patch copied to clipboard

query参数不支持对象吗

Open scutcl opened this issue 6 years ago • 7 comments

scutcl avatar May 22 '18 06:05 scutcl

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

F-loat avatar May 22 '18 06:05 F-loat

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

scutcl avatar May 23 '18 12:05 scutcl

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

F-loat avatar May 23 '18 12:05 F-loat

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

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

Alwayslazydog avatar Jan 09 '19 09:01 Alwayslazydog

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

F-loat avatar Jan 09 '19 09:01 F-loat

image image 页面完全收不到参数

zjydipingxian avatar Apr 02 '19 06:04 zjydipingxian

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

F-loat avatar Apr 02 '19 06:04 F-loat