From 814dd1f3a880c267af729257db34dc4265394eed Mon Sep 17 00:00:00 2001 From: ZhangYong Date: Sat, 11 Apr 2026 09:35:45 +0800 Subject: [PATCH] =?UTF-8?q?filterMenu=E5=8F=96=E6=B6=88=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E7=B1=BB=E6=8C=89=E7=85=A7id=E5=8D=87=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/menuUtils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/menuUtils.js b/src/utils/menuUtils.js index d073102..ef34fe4 100644 --- a/src/utils/menuUtils.js +++ b/src/utils/menuUtils.js @@ -7,7 +7,8 @@ export function filterMenu(menuList) { ...menu, children: menu.children ? filterMenu(menu.children) : [] })) - .sort((a, b) => a.id - b.id); // 按 id 升序 + // 按 id 升序 + // .sort((a, b) => a.id - b.id); } // 过滤 只获得第三级的菜单