[TOC]
### 嵌套路由
设置嵌套路由比如访问 http://xxx.com/news/detail
~~~
{
path: '/news',
name: 'news',
component: () => import('@/views/News.vue'),
children: [
{
path: 'detail',
name: 'detail',
component: () => import('@/views/Detail')
}
]
}
~~~
~~~
<template>
<div>
News
<router-view></router-view>
</div>
</template>
~~~