perf: correct cloneDeep spelling errors [skip ci] (#4099)

Signed-off-by: aonoa <1991849113@qq.com>
pull/48/MERGE
aonoa 2024-08-09 18:24:52 +08:00 committed by GitHub
parent ca164b0f9b
commit 5b56c300ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -9,4 +9,4 @@ export * from './tree';
export * from './unique'; export * from './unique';
export * from './update-css-variables'; export * from './update-css-variables';
export * from './window'; export * from './window';
export { default as cloneDepp } from 'lodash.clonedeep'; export { default as cloneDeep } from 'lodash.clonedeep';

View File

@ -5,7 +5,7 @@ import type {
} from '@vben/types'; } from '@vben/types';
import { import {
cloneDepp, cloneDeep,
generateMenus, generateMenus,
generateRoutesByBackend, generateRoutesByBackend,
generateRoutesByFrontend, generateRoutesByFrontend,
@ -18,7 +18,7 @@ async function generateAccessible(
) { ) {
const { router } = options; const { router } = options;
options.routes = cloneDepp(options.routes); options.routes = cloneDeep(options.routes);
// 生成路由 // 生成路由
const accessibleRoutes = await generateRoutes(mode, options); const accessibleRoutes = await generateRoutes(mode, options);