element icon indicating copy to clipboard operation
element copied to clipboard

使用el-menu组件做二级菜单时 显示当前 :default-active="onRoutes"

Open 422656004 opened this issue 9 years ago • 2 comments

computed:{ onRoutes() {
return this.$route.path.replace('/',''); } }

所属的一级菜单会加上 el-submenu is-active is-opened 如果el-menu上面的数据是异步请过过来的时候 所属的一级菜单会加上 el-submenu is-active 但是 is-opened 就不会被加上;不知道如何处理

422656004 avatar May 25 '17 12:05 422656004

Hello, this issue has been closed because it does not conform to our issue requirements. Please submit issues with issue-generator. More info can be found in #3693.

element-bot avatar May 25 '17 12:05 element-bot

我也遇到这个问题,而且在线运行官方例子是没问题的,很奇怪。目前解决方法是再加个default-openeds属性。

CYvonne avatar Jul 18 '17 06:07 CYvonne