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
| import main from '@/pages/common/Home.vue'
| import showHome from "../pages/show/showHome";
| const indexRouter = {
| path: '/',
| name: 'showIndex',
| component: showHome,
| redirect: '/showIndex',
| children: [
| { path: '/showIndex', meta: { title: '首页' }, name: 'index', component: () => import('@/pages/show/showIndex/showIndex.vue') },
| ]
| }
| const jtopoRouter = {
| path: '/jtopo',
| component: () => import('@/pages/show/jtopo/index.vue'),
| meta: {
| title: `拓扑图`,
| }
| }
| const login = {
| path: '/login',
| component: () => import('@/pages/login.vue'),
| meta: {
| title: `后台登陆`,
| }
| }
| const NotFound = {
| path: '/404',
| component: () => import('@/error_pages/404.vue'),
| meta: {
| title: "404 | 啊哦~ 你所访问的页面不存在",
| }
| }
| export const routers = [
| indexRouter,
| jtopoRouter,
| login,
| NotFound
| ]
|
|