WXL (wul)
昨天 447ac8696eb82c65d7e231a96679e0ca04943751
src/router/index.js
@@ -106,38 +106,38 @@
    component: () => import("@/views/error/401"),
    hidden: true,
  },
  {
    path: "",
    component: Layout,
    redirect: "index",
    children: [
      {
        path: "index",
        component: () => import("@/views/index"),
        name: "Index",
        meta: {
          title: "首页",
          icon: "dashboard",
          affix: true,
          roles: ["admin", "sysadmin"],
        },
      },
    ],
  },
  {
    path: "/user",
    component: Layout,
    hidden: true,
    redirect: "noredirect",
    children: [
      {
        path: "profile",
        component: () => import("@/views/system/user/profile/index"),
        name: "Profile",
        meta: { title: "个人中心", icon: "user" },
      },
    ],
  },
  // {
  //   path: "",
  //   component: Layout,
  //   redirect: "index",
  //   children: [
  //     {
  //       path: "index",
  //       component: () => import("@/views/index"),
  //       name: "Index",
  //       meta: {
  //         title: "首页",
  //         icon: "dashboard",
  //         affix: true,
  //         roles: ["admin", "sysadmin"],
  //       },
  //     },
  //   ],
  // },
  // {
  //   path: "/user",
  //   component: Layout,
  //   hidden: true,
  //   redirect: "noredirect",
  //   children: [
  //     {
  //       path: "profile",
  //       component: () => import("@/views/system/user/profile/index"),
  //       name: "Profile",
  //       meta: { title: "个人中心", icon: "user" },
  //     },
  //   ],
  // },
];
// 动态路由,基于用户权限动态去加载