/** When your routing table is too long, you can split it into small modules**/

import Layout from "@/layout";

const systemRouter = {
  path: "/system",
  component: Layout,
  redirect: "/system/users",
  name: "System",
  meta: { title: "系統管理", icon: "el-icon-setting" },
  alwaysShow: true,
  children: [
    {
      path: "users",
      name: "Users",
      component: () => import("@/views/page/system/users/index"),
      meta: { title: "用户管理", icon: "users" }
    },
    {
      path: "function",
      name: "Function",
      component: () => import("@/views/page/system/function/index"),
      meta: { title: "功能管理", icon: "function" }
    },
    {
      path: "role",
      name: "Role",
      component: () => import("@/views/page/system/role/index"),
      meta: { title: "角色管理", icon: "role" }
    },
    {
      path: "log",
      name: "Log",
      component: () => import("@/views/page/system/log/index"),
      meta: { title: "日志管理", icon: "log" }
    },
    {
      path: "notice",
      name: "Notice",
      component: () => import("@/views/page/system/notice/index"),
      meta: { title: "集团公告管理", icon: "notice" }
    }
  ]
};

export default systemRouter;
