解决方案:
将style方案改成下面即可:
类名设置为router-link-active,即使是跳转到子路由也不会影响到主路由的样式问题
.router-link-active{
color: #8fc526!important;
border-top: 4px solid #8fc526!important;
}
解决方案:
将style方案改成下面即可:
类名设置为router-link-active,即使是跳转到子路由也不会影响到主路由的样式问题
.router-link-active{
color: #8fc526!important;
border-top: 4px solid #8fc526!important;
}