😵修复一级菜单点击无响应的问题

This commit is contained in:
KaneLeung 2024-07-11 14:52:15 +08:00
parent 5a66a88d8f
commit db845f85b7

View File

@ -79,7 +79,7 @@ const onColumnsAsideMenuClick = async (v: RouteItem) => {
if (route.path.startsWith(redirect)) mittBus.emit('setSendColumnsChildren', setSendChildren(redirect));
else router.push(redirect);
} else {
if (!v.children) {
if (!v.children || v.children?.length === 0) {
router.push(path);
} else {
//