vue_location_0">vue 小白初次实践踩坑(二)-路由与location 需求: 第一种:要求点击不同的导航跳转到另一个页面,在另一个页面上也有通用的导航,刚刚点击的那个导航应该处于选中状态(高亮) <template> <div> <ul class="header-menu" ref="MainHeader" @mouseleave="handleLeaveMainHeader"> <li v-