Working with VueRouter to navigate to a component based on payload.
{
path: '/foobar',
name: 'foobar',
component: foobar,
}
{
path: '/foobar',
name: 'foobarSuccess',
component: foobarSuccess,
query: { status: 'success' }
}
In the example above, the first route is the initial step. After performing some actions on that page, we are redirected back with the payload containing status='success'. How can I utilize the query object to navigate to the correct component?