1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| import { type ModuleConfig } from '/@/cool';
|
| export default (): ModuleConfig => {
| return {
| components: [() => import('./views/crud/components/code.vue')],
|
| views: [
| {
| // 单个参数
| // path: "/demo/test/route/:id",
|
| // 多个参数
| // path: "/demo/test/route/:id/:name",
|
| // 参数可选
| path: '/demo/test/route/:id/:name?',
|
| // 更多看文档:https://router.vuejs.org/zh/guide/essentials/route-matching-syntax.html
|
| meta: {
| label: '动态路由参数'
| },
| component: () => import('./views/test/route.vue')
| }
| ]
| };
| };
|
|