🙄优化切换一级菜单后没有背景色块

This commit is contained in:
KaneLeung 2024-07-11 15:10:54 +08:00
parent db845f85b7
commit 9f9f666a62

View File

@ -81,6 +81,7 @@ const onColumnsAsideMenuClick = async (v: RouteItem) => {
} else { } else {
if (!v.children || v.children?.length === 0) { if (!v.children || v.children?.length === 0) {
router.push(path); router.push(path);
onColumnsAsideDown(v.k);
} else { } else {
// //
const resData: MittMenu = setSendChildren(path); const resData: MittMenu = setSendChildren(path);
@ -92,7 +93,7 @@ const onColumnsAsideMenuClick = async (v: RouteItem) => {
// //
// https://gitee.com/lyt-top/vue-next-admin/issues/I6HW7H // https://gitee.com/lyt-top/vue-next-admin/issues/I6HW7H
if (!v.children) themeConfig.value.isCollapse = true; if (!v.children || v.children?.length === 0) themeConfig.value.isCollapse = true;
else if (v.children.length > 1) themeConfig.value.isCollapse = false; else if (v.children.length > 1) themeConfig.value.isCollapse = false;
}; };
// //