From c9d242c7e1c26b02b71aa8ebfead14ecb7211ad8 Mon Sep 17 00:00:00 2001 From: "zhang.xionghui" <13834222683@163.com> Date: Wed, 11 Jan 2023 02:35:38 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E5=8F=AA=E6=9C=89?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E8=8F=9C=E5=8D=95=E6=97=B6=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhang.xionghui <13834222683@163.com> --- yudao-ui-admin/src/store/modules/permission.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yudao-ui-admin/src/store/modules/permission.js b/yudao-ui-admin/src/store/modules/permission.js index a9dbd2b41..4b6212367 100644 --- a/yudao-ui-admin/src/store/modules/permission.js +++ b/yudao-ui-admin/src/store/modules/permission.js @@ -73,6 +73,8 @@ function filterAsyncRouter(asyncRouterMap, lastRouter = false, type = false) { } else { route.component = ParentView } + // 解决只有一个菜单时无法显示目录 + route.alwaysShow = true } else { // 根节点 route.component = loadView(route.component) }