Commit d8daaa66 authored by 刘斌's avatar 刘斌

fix: 测试深度复制

parent c4afc772
...@@ -42,7 +42,7 @@ function convertRoutes( ...@@ -42,7 +42,7 @@ function convertRoutes(
layoutMap: ComponentRecordType, layoutMap: ComponentRecordType,
pageMap: ComponentRecordType, pageMap: ComponentRecordType,
): RouteRecordRaw[] { ): RouteRecordRaw[] {
console.log('[convertRoutes routes]', routes); console.log('[convertRoutes routes]', structuredClone(routes));
return mapTree(routes, (node) => { return mapTree(routes, (node) => {
const route = node as unknown as RouteRecordRaw; const route = node as unknown as RouteRecordRaw;
const { component, name } = node; const { component, name } = node;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment