vue模块高亮

步骤:
1.router,js中添加

linkExactActiveClass: 'active',
router.js文件

2.所需高亮部分的文件(例如.vue文件)的css中添加

    .active {
        color: rgb(240,20,20);
    }
.vue文件的html部分

3.效果图


商品部分获得高亮

你可能感兴趣的:(vue模块高亮)