[Vuejs]-Additional nested <router-view /> does not render view from child route

3👍

path: "/", inside children is interpreted as root path by Vue Router. If you want to render something "default" inside the "/foo" route, use empty string:

const featureRoute = {
  path: "/foo",
  component: Index,
  children: [
    {
      path: "",
      component: Home,
    },
  ],
};

Check last example in the docs

Leave a comment