vue使用element-ui菜单路由需要点击两次才高亮

28 阅读1分钟

问题:点击左侧菜单栏,需要点击两次,才高亮选中。

原因::default-active设置的path与:index 不一致

解决方法:保持一致。

image.png