I am using vue-router
to route my app.I want to route with some meta data.I have this in my index.js for route config.
{
path: /column/:id ,
name: columnDetail ,
meta: {
specialColumnName: "hello"
},
component: () => import( ../views/SpecialColumnDetailPage/specialColumnDetailPage.vue ),
},
I use this method to navigate to /column/:id
.
router.push({
path: `column/${specialColumnId}`,
meta: {
specialColumnName: test ,
hello: world ,
},
});
But when I want to get specialColumnName
in specialColumnDetailPage component.I always get hello
instead of test
.I want to pass specialColumnName
to component when I navigate to specialColumnDetailPage compnent.
here is the log of router.currentRoute.value.meta
.