guanqb
2022-09-23 e47f943132eb8ff38025a3784e382cfe0f9898ea
Merge branch 'master' of http://192.168.0.105:10010/r/srs-police-affairs
1 files modified
17 ■■■■ changed files
src/views/lyout/index.vue 17 ●●●● patch | view | raw | blame | history
src/views/lyout/index.vue
@@ -2,7 +2,7 @@
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2022-08-18 16:18:24
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2022-09-23 17:19:04
 * @LastEditTime: 2022-09-23 17:47:40
 * @FilePath: \srs-police-affairs\src\views\lyout\index.vue
 * @Description: 
 * 
@@ -16,7 +16,11 @@
            <!-- 菜单导航 -->
            <div class="menu-list">
                <div class="nav-list" v-for="(item, index) in menuList" :key="index">
                    <div class="nav" @click="goToPath(item)">{{item.menuName}}</div>
                    <div
                        class="nav"
                        :class="{on: currentUrl == item.path}"
                        @click="goToPath(item)"
                    >{{item.menuName}}</div>
                </div>
            </div>
@@ -64,7 +68,9 @@
                    menuName: '安保活动',
                    path: '/lyout/activity'
                },
            ]
            ],
            currentUrl: '/lyout/home'
        }
    },
@@ -81,6 +87,7 @@
        goToPath (params) {
            if (params.path) {
                if (this.$route.path == params.path) return
                this.currentUrl = params.path
                this.$router.push(params.path)
            } else {
                params.childrenFlag = !params.childrenFlag
@@ -131,6 +138,10 @@
                cursor: pointer;
            }
            .nav.on {
                color: rgba(32, 106, 181, 1);
            }
            .nav:hover {
                color: rgba(32, 106, 181, 1);
                font-weight: bold;