A:全局设置
export default new VueRouter({ linkActiveClass: 'active', linkExactActiveClass: 'active', routes : [ ] });B.个体调整
<router-link :to="'home'" tag="li" active-class="active">标题</router-link>
部分素材资源来源网站,本站提供免费下载,如有侵权请联系站长马上删除!
export default new VueRouter({ linkActiveClass: 'active', linkExactActiveClass: 'active', routes : [ ] });B.个体调整
<router-link :to="'home'" tag="li" active-class="active">标题</router-link>