二级路由,由叫嵌套路由
一、配置
{path: '/city',name: 'city',component: City,children:[{path:'hotCity',component:()=>import('@/components/HotCity')},{path:'newCity',component:()=>import('@/components/NewCity')}]}
二、在city.vue组件中配置router-view
<template><div><router-view></router-view><p>city</p></div></template>
