Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic passing the params #21

Open
sara-farokhi opened this issue Aug 13, 2022 · 0 comments
Open

Dynamic passing the params #21

sara-farokhi opened this issue Aug 13, 2022 · 0 comments

Comments

@sara-farokhi
Copy link

Hello Everyone
I am trying to use vue-2-crumbs and I have some routes as follows in my router.js file
this route is considered as the parent
{
path: "/metaService/:id/child",
name: "IndexMetaServiceChild",
meta: {
title: "IndexMetaServiceChild",
requiresAuth: true,
permission: "platform.meta_service.get_child",
breadcrumb: {
label: "IndexMetaServiceChild",
parent: "MetaServices",
},
},
component: () => import("@/views/metaService/IndexMetaServiceChild"),
},

and this route is considered as its following child

{
path: "/metaServices/metaServicesChild/edit/:parent/:id",
name: "EditMetaServiceChild",
meta: {
title: "EditMetaServiceChild",
requiresAuth: true,
permission: "platform.meta_service.show",
breadcrumb: {
label: "EditMetaServiceChild",
parent: {
name: "IndexMetaServiceChild",
params: {
id: ":parent",

      }
    },
  },
},

the bug is that I want to pass the ":parent" params to its parent dynamically however the ":id" param is passed by default.
Is there any solution?
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant