杨磊
2025-03-31 2153eb58afd80010a1ec506198a401f918892663
src/router/index.js
@@ -11,8 +11,7 @@
Vue.use(VueRouter);
const routes = [
  {
const routes = [{
    path: "/",
    name: "HomeLayout",
    component: HomeLayout,
@@ -22,14 +21,14 @@
    children: [
      // 在主框架内
      {
        path: "/home",
        name: "home",
        path: "/chronology",
        name: "chronology",
        meta: {
          name: "首页",
          authentication: false, // 是否需要登录验证
          keepAlive: false, // 是否需要缓存
        },
        component: Home,
        component: () => import("@/views/chronology/index.vue")
      },
      {
@@ -50,9 +49,22 @@
      //   },
      //   component: () => import("@/views/login/login")
      // },
    ],
    ]
  },
  // 不在主框架内
  {
    path: "/home",
    name: "home",
    meta: {
      name: "首页",
      authentication: false, // 是否需要登录验证
      keepAlive: false // 是否需要缓存
    },
    component: Home
  },
  // {
  //   path: "/pdf",
  //   name: "pdf",
@@ -64,4 +76,4 @@
  routes,
});
export default router;
export default router;