13404089107
2025-03-04 215530a0eb78faad5e3a0e7b0d695bb6485dcf15
Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/H5/shehong-vehicle-supervision
2个文件已修改
48 ■■■■■ 已修改文件
src/layouts/index.vue 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/router/router.js 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/layouts/index.vue
@@ -24,12 +24,13 @@
        <div class="menu w100 bgColor1">
            <div v-for="(item, index) in routesList" :key="index" class="flex a-center h100">
                <div v-for="(item2, index2) in item.children" :key="index2" class="h100">
                    <div v-if="!item2.hide" class="flex a-center h100 px--40 menuItemHover pointer"
                    <div @click="$router.push(item2.path)" v-if="!item2.hide"
                        class="flex a-center h100 px--40 menuItemHover pointer"
                        :class="item2.path == $route.path && 'bgColor2'">
                        <img :src="require(`@/assets/routerIcon/${item2.icon}.png`)"
                        <img v-if="item2.meta.icon" :src="require(`@/assets/routerIcon/${item2.meta.icon}.png`)"
                            class="w--15 h--15 mr--12 shrink0" />
                        <div class="color1">
                            {{ item2.title }}
                            {{ item2.meta.title }}
                        </div>
                    </div>
                </div>
src/router/router.js
@@ -25,25 +25,40 @@
            {
                path: '/home',
                component: () => import('@/view/home'),
                title: '首页',
                icon: 'home'
                meta: {
                    title: '首页',
                    icon: 'home'
                }
            },
        ]
    },
    {
        path: '/early-warning',
        component: () => import('@/view/early-warning'),
        meta: {
            title: '报警记录',
            icon: 'home'
        }
        component: Layout,
        children: [
            {
                path: '/early-warning',
                component: () => import('@/view/early-warning'),
                meta: {
                    title: '报警记录',
                    icon: 'alarm'
                }
            }
        ]
    },
    {
        path: '/complaint',
        component: () => import('@/view/complaint/index'),
        meta: {
            title: '投诉记录'
        }
    }
        component: Layout,
        children: [
            {
                path: '/complaint',
                component: () => import('@/view/complaint/index'),
                meta: {
                    title: '投诉记录',
                    icon: 'complaint'
                }
            }
        ]
    }
]