|
@@ -74,6 +74,7 @@ export const constantRoutes = [
|
|
|
{
|
|
|
path: "",
|
|
|
component: Layout,
|
|
|
+ hidden: true,
|
|
|
redirect: "index",
|
|
|
meta: { title: "首页", icon: "dashboard", affix: true },
|
|
|
children: [
|
|
@@ -113,20 +114,20 @@ export const constantRoutes = [
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
- // {
|
|
|
- // path: "/home",
|
|
|
- // name: "home",
|
|
|
- // hidden: true,
|
|
|
- // component: Layout,
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // path: "/home/index",
|
|
|
- // component: () => import("@/views/home/index"),
|
|
|
- // name: "home",
|
|
|
- // meta: { title: "首页" },
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
+ {
|
|
|
+ path: "/home",
|
|
|
+ name: "home",
|
|
|
+ hidden: true,
|
|
|
+ component: Layout,
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: "/home/index",
|
|
|
+ component: () => import("@/views/home/index"),
|
|
|
+ name: "home",
|
|
|
+ meta: { title: "首页" },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
{
|
|
|
path: "/secure",
|
|
|
name: "secure",
|