对着上面的结构图,路由的结构其实大概已经了解了
{ path:\'\', redirect:"/home" }, { path:\'/home\', component:Main, children:[ { path:\'\', redirect:"index" }, { path:\'index\', component:Index }, { path:\'search\', component:Search }, { path:\'vip\', component:Vip } ] }, { path:\'/car\', component:Car, }