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>