vue之激活路由链接高亮类名

router.js

// 自定义路由高亮的 class 类
linkActiveClass: 'active-router',

index.css

.active-router {
  background-color: blue;
  color: white;
  font-weight: bold;
}

 

posted @ 2022-06-08 12:15  hi123hi159  阅读(48)  评论(0)    收藏  举报