Partage
  • Partager sur Facebook
  • Partager sur Twitter

[VUE3] Vue-router problem

Error: Missing required param "id"

    5 août 2022 à 9:47:39

    Hello,

    I have a problem with the router view. I have a main route that contains two child routes. One of them requires a param id the other doesn't. However, the console tells me that a param id is missing on the route that does not require one. If anyone has an idea, it would be very helpful :)

    Thanks in advance

      {
        name: 'NavigationRouterContainer',
        path: '/',
        component: () => import('@layouts/templates/NavigationRouterContainer.vue'),
        children: [
          {
            name: 'ReservationSpacePage',
            path: 'espace-reservataire/:id',
            children: tabs.map(route => route.href)
          },
          {
            name: 'ProfilPage',
            path: 'profil',
            component: () => import('@auth/components/pages/ProfilPage.vue'),
            redirect: {
              name: 'InformationsPage'
            },
            children: profilTabs.map(route => route.href)
          }
        ]
      }

    -
    Edité par Sarah2627 5 août 2022 à 9:48:04

    • Partager sur Facebook
    • Partager sur Twitter

    [VUE3] Vue-router problem

    × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
    × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
    • Editeur
    • Markdown