feat(web): add list-operator node & support file type variables

This commit is contained in:
zhaoying
2026-04-03 18:52:06 +08:00
parent 1732fc7af5
commit b20a65ce29
27 changed files with 1347 additions and 350 deletions

View File

@@ -241,7 +241,7 @@ const Menu: FC<{
const findMatchingKey = (menuList: MenuItem[], parentPaths: string[] = []): { key: string | null; } => {
for (const menu of menuList) {
if (menu.path) {
const menuPath = menu.path[0] !== '/' ? '/' + menu.path : menu.path;
const menuPath = menu.path?.[0] !== '/' ? '/' + menu.path : menu.path;
/** Exact match or path prefix match (ensure complete path segment match) */
const isExactMatch = menuPath === currentPath;