chore(useMetaLayoutsMenuOptions): 优化调试日志输出格式
All checks were successful
CI/CD Pipeline / playwright (push) Successful in 3m55s
CI/CD Pipeline / build-and-deploy (push) Successful in 4m11s

This commit is contained in:
严浩
2025-10-27 13:46:06 +08:00
parent 09ec2c7d12
commit 267bf75bc1

View File

@@ -150,8 +150,28 @@ export function useMetaLayoutsNMenuOptions({ menuInstRef }: { menuInstRef: Ref<M
return rootMenus; return rootMenus;
} }
// console.debug('原始路由:', JSON.stringify(routes, null, 0)); // console.debug(
// console.debug('转换后的菜单:', JSON.stringify(menuOptions.value, null, 0)); // '原始路由:',
// JSON.stringify(
// routes.map((route) => ({
// // path
// // name
// // meta
// ...route,
// props: undefined,
// children: undefined,
// instances: undefined,
// leaveGuards: undefined,
// updateGuards: undefined,
// enterCallbacks: undefined,
// components: undefined,
// })),
// null,
// 0,
// ),
// );
// console.debug('转换后的菜单:', JSON.stringify(options.value, null, 0));
return { return {
options, options,
selectedKey, selectedKey,