PanJiaChen / vue-admin-template

a vue2.0 minimal admin template
https://git.io/fAnuM
MIT License
20.01k stars 7.42k forks source link

如何设置左侧子菜单默认全部打开 #538

Closed lmfuture closed 4 years ago

lmfuture commented 4 years ago

如何设置左侧子菜单默认全部打开

csccoder commented 4 years ago

1.edit src#layout#components#Sidebar#index.vue 2.find el-menu tag,add default-openeds attr. attr value is router str array of need to default open ` <el-menu :default-openeds="openeds"

`

PanJiaChen commented 4 years ago

https://panjiachen.github.io/vue-element-admin-site/zh/guide/essentials/router-and-nav.html#%E4%BE%A7%E8%BE%B9%E6%A0%8F%E9%BB%98%E8%AE%A4%E5%B1%95%E5%BC%80