import {AppRouteRecordRaw} from "/@/router/types";
// 导出根节点路由
export const rootRoutes: AppRouteRecordRaw[] = [];
// 导出layout下的路由
export const layoutRoutes: AppRouteRecordRaw[] = [
  #foreach($router in $routers)
  {
    path: "/$router.path",
    name: "$router.name",
    component: () => import("/@/pages/$router.filePath/index.vue"),
    props: (route: any) => ({ json: route.params.json || "{}" }),
    meta: {
      title: "$router.title",
    },
  },
  #end
];
