Vue 默认展开路由所在的菜单

默认展开路由所在的菜单

在 el-menu 标签中指定下面的两个属性
1. :default-active="$route.path" 
2. router

示例:

你可能感兴趣的:(Vue 默认展开路由所在的菜单)