common.js
913 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* Layout */
import Layout from '@/layout';
import Emptylayout from '@/layout/emptyLayout';
import IframeLayout from '@/layout/iframeLayout';
const commonRoutes = [
{
path: '/dashboard',
component: Layout,
children: [
{
path: 'index',
component: () => import('@/views/dashboard/index.vue'),
meta: {
title: '首页',
noCache: true
}
}
]
},
{
path: '/iframe',
component: Layout,
children: [
{
path: 'index',
component: IframeLayout,
meta: {
title: 'iframe'
}
}
],
hidden: true
},
{
path: '*',
redirect: '/404',
hidden: true
}
];
export default commonRoutes;