0👍
You have to define your router with parameters
{
path: '/foobar',
name: 'foobar',
component: foobar,
}
{
path: '/foobar/:status',
name: 'foobarSuccess',
component: foobarSuccess,
query: { status: 'success' }
}
here status
will contain like success
, finally /foobar/success
based on this parameter also you can display the sccuess message
For more information you can refer the simple docs https://router.vuejs.org/en/essentials/dynamic-matching.html ,
- [Vuejs]-How to find/replace specific object in Vuex?
- [Vuejs]-Unable to understand how vue-router query params work
Source:stackexchange.com