17 lines
329 B
TypeScript
17 lines
329 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 mixinRoutes;
|