Ask for advice! Which is better, vue component switching or route hopping or nested routing? Is the speed the same?

which is better, vue component switching or route hopping? Is the performance and speed the same? what are the differences?
if you have two tab, usage components, you can use < component VmurbindVista is = "currentTabComponent" > < / component >
routing
routes: [

    {         
      path: "page1",
      component: page1
    },
    {
      path: "page2",
      component: page2
    }    

]
nested routes use
routes: [

{ path: "/page/:id", component: page,
  children: [
    {         
      path: "page1",
      component: page1
    },
    {
      path: "page2",
      component: page2
    }
  ]
}

]

Apr.07,2021

page1 and page2 use children if one of them is common. Then put the public ones into the page. The difference is that the path is different, and the nested path has an extra layer.

Menu