提交 b8de1259 编写于 作者: Q qq_38870145

Thu Feb 8 14:31:00 CST 2024 inscode

上级 3fb73344
...@@ -47,6 +47,10 @@ onMounted(() => { ...@@ -47,6 +47,10 @@ onMounted(() => {
state.menuList = routes.reduce((pre, item) => { state.menuList = routes.reduce((pre, item) => {
const isHiddenInLayout = item.meta.isHiddenInLayout const isHiddenInLayout = item.meta.isHiddenInLayout
if (!isHiddenInLayout) { if (!isHiddenInLayout) {
if(!pre.length){
state.openKeys =[item.name]
state.selectedKeys = [item.name]
}
const menuItem = { const menuItem = {
title: item.meta.title, title: item.meta.title,
path: item.path, path: item.path,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册