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
42
43
44
45
46
47
48
49
50
51
52
53
| /*
| * @Author: Morpheus
| * @Date: 2021-04-30 14:12:09
| * @Last Modified by: Morpheus
| * @Last Modified time: 2022-07-29 09:15:23
| */
|
| import Vue from 'vue'
| import VueRouter from 'vue-router'
|
| Vue.use(VueRouter)
|
| const layout = () => import('../../views/layout/index.vue')
| const home = () => import('../../views/home/index.vue')
|
| const routes = [
| {
| path: '/',
| redirect: '/layout'
| },
| {
| path: '/layout',
| redirect: '/layout/home',
| meta: {
| title: '导航菜单'
| },
| component: layout,
| children: [
| {
| path: 'home',
| meta: {
| title: '首页'
| },
| component: home
| }
| ]
| },
|
| {
| path: '/ssjk',
| meta: {
| title: '实时监控'
| },
| component: () => import('../../views/ywsys/index.vue'),
| },
| ]
|
| const router = new VueRouter({
| base: process.env.BASE_URL,
| routes
| })
|
| export default router
|
|