mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-10 13:55:00 +00:00
17 lines
332 B
TypeScript
17 lines
332 B
TypeScript
|
import { appRoutes, appExternalRoutes } from '../routes';
|
||
|
|
||
|
const mixinRoutes = [...appRoutes, ...appExternalRoutes];
|
||
|
|
||
|
const appClientMenus = mixinRoutes.map((el) => {
|
||
|
const { name, path, meta, redirect, children } = el;
|
||
|
return {
|
||
|
name,
|
||
|
path,
|
||
|
meta,
|
||
|
redirect,
|
||
|
children,
|
||
|
};
|
||
|
});
|
||
|
|
||
|
export default appClientMenus;
|