| | |
| | | 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" }, |
| | | // }, |
| | | // ], |
| | | // }, |
| | | ]; |
| | | |
| | | // 动态路由,基于用户权限动态去加载 |