diff --git a/packages/@core/base/shared/src/utils/index.ts b/packages/@core/base/shared/src/utils/index.ts index 34e6e78e..301675c0 100644 --- a/packages/@core/base/shared/src/utils/index.ts +++ b/packages/@core/base/shared/src/utils/index.ts @@ -9,4 +9,4 @@ export * from './tree'; export * from './unique'; export * from './update-css-variables'; export * from './window'; -export { default as cloneDepp } from 'lodash.clonedeep'; +export { default as cloneDeep } from 'lodash.clonedeep'; diff --git a/packages/effects/access/src/accessible.ts b/packages/effects/access/src/accessible.ts index 10f0d860..289a3bd0 100644 --- a/packages/effects/access/src/accessible.ts +++ b/packages/effects/access/src/accessible.ts @@ -5,7 +5,7 @@ import type { } from '@vben/types'; import { - cloneDepp, + cloneDeep, generateMenus, generateRoutesByBackend, generateRoutesByFrontend, @@ -18,7 +18,7 @@ async function generateAccessible( ) { const { router } = options; - options.routes = cloneDepp(options.routes); + options.routes = cloneDeep(options.routes); // 生成路由 const accessibleRoutes = await generateRoutes(mode, options);