fix: maximum call stack size (#4674)

* fix: maximum call stack size
This commit is contained in:
vince
2024-10-18 14:24:39 +08:00
committed by GitHub
parent 6cd9937c03
commit c491b9e021
7 changed files with 37 additions and 197 deletions

View File

@@ -11,7 +11,7 @@ import {
usePreferences,
} from '@vben/preferences';
import { useLockStore } from '@vben/stores';
import { deepToRaw, mapTree } from '@vben/utils';
import { cloneDeep, mapTree } from '@vben/utils';
import { VbenAdminLayout } from '@vben-core/layout-ui';
import { VbenBackTop, VbenLogo } from '@vben-core/shadcn-ui';
@@ -112,7 +112,7 @@ const {
function wrapperMenus(menus: MenuRecordRaw[]) {
return mapTree(menus, (item) => {
return { ...deepToRaw(item), name: $t(item.name) };
return { ...cloneDeep(item), name: $t(item.name) };
});
}