【发布时间】:2018-03-01 05:53:01
【问题描述】:
我正在使用vuerouter,想根据payload路由到一个组件。
{
path: '/foobar',
name: 'foobar',
component: foobar,
}
{
path: '/foobar',
name: 'foobarSuccess',
component: foobarSuccess,
query: { status: 'success' }
}
上面的例子,第一条路线是第一步。我们在那里做一些事情,然后我们转到另一个页面并使用有效负载状态=成功重定向回来。如何使用查询对象路由到正确的组件?
【问题讨论】:
标签: javascript vue.js vue-router