使用element-ui 菜单栏(el-menu)点击两次才高亮的bug

329 阅读1分钟

原因:default-active和index属性不一致导致的

解决方法:使用路由的name属性设置给index和default-active

image.png