import { $t } from "@/plugins/i18n";
import { project } from "@/router/enums";

export default {
  path: "/project",
  redirect: "/project/index",
  meta: {
    icon: "ri:folder-chart-line",
    title: $t("menus.pureProject"),
    rank: project
  },
  children: [
    {
      path: "/project/index",
      name: "Project",
      component: () => import("@/views/project/index.vue"),
      meta: {
        title: $t("menus.pureProject")
      }
    },
    {
      path: "/project/detail/:id",
      name: "ProjectDetail",
      component: () => import("@/views/project/detail.vue"),
      meta: {
        title: "项目详情",
        showLink: false,
        activePath: "/project/index"
      }
    }
  ]
} satisfies RouteConfigsTable;
