tengsx
2023-04-07 36c045a4f518f6506eab91e48ee48ce7d1aaa21d
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
 * @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 home_02 = () => import('../../views/home/index_02.vue')
const home_03 = () => import('../../views/home/index_03.vue')
 
const routes = [
    {
        path: '/',
        redirect: '/layout'
    },
    {
        path: '/layout',
        redirect: '/layout/home',
        meta: {
            title: '导航菜单'
        },
        component: layout,
        children: [
            {
                path: 'home',
                meta: {
                    title: '首页'
                },
                component: home
            },
            {
              path: 'home2',
              meta: {
                  title: '首页'
              },
              component: home_02
            },
            {
            path: 'home3',
            meta: {
                title: '首页'
            },
            component: home_03
        }
        ]
    },
 
    {
        path: '/ssjk',
        meta: {
            title: '实时监控'
        },
        component: () => import('../../views/ywsys/index.vue'),
    },
]
 
const router = new VueRouter({
    base: process.env.BASE_URL,
    routes
})
 
export default router