refactor: 项目重构

This commit is contained in:
Ray.Hao
2025-05-24 07:35:46 +08:00
parent cfe041d7d2
commit 32686ad807
51 changed files with 1201 additions and 696 deletions

View File

@@ -181,7 +181,7 @@ const handleLayoutChange = (layout: LayoutMode) => {
* @param findName 查找的名称
*/
function findTopLevelRoute(tree: any[], findName: string) {
let parentMap: any = {};
const parentMap: any = {};
function buildParentMap(node: any, parent: any) {
parentMap[node.name] = parent;