From ce9ff4af4cf7ccc87d3ef94a849942baf112b811 Mon Sep 17 00:00:00 2001 From: 杨磊 <505174330@qq.com> Date: 星期一, 07 四月 2025 18:03:01 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/wyyDatabase --- src/router/index.js | 48 +++++++++++++++++++++++++++++++++++++----------- 1 files changed, 37 insertions(+), 11 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 38e8377..ebb41ca 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -11,27 +11,25 @@ Vue.use(VueRouter); -const routes = [ - { +const routes = [{ path: "/", name: "HomeLayout", component: HomeLayout, redirect: { - name: "honor", + name: "chronology", }, children: [ // 鍦ㄤ富妗嗘灦鍐� { - path: "/home", - name: "home", + path: "/chronology", + name: "chronology", meta: { - name: "棣栭〉", + name: "骞磋氨", authentication: false, // 鏄惁闇�瑕佺櫥褰曢獙璇� keepAlive: false, // 鏄惁闇�瑕佺紦瀛� }, - component: Home, + component: () => import("@/views/chronology/index.vue") }, - { path: "/honor", name: "honor", @@ -40,7 +38,22 @@ }, component: Honor, }, - + { + path: "/achievements", + name: "achievements", + meta: { + name: "瀛︽湳鎴愭灉", + }, + component: () => import("@/views/achievements/index.vue"), + }, + { + path: "/directory", + name: "directory", + meta: { + name: "瀛︾敓鍚嶅綍", + }, + component: () => import("@/views/directory/index.vue"), + }, // { // path: "/login", // name: "login", @@ -50,9 +63,22 @@ // }, // component: () => import("@/views/login/login") // }, - ], + + ] }, + // 涓嶅湪涓绘鏋跺唴 + + { + path: "/home", + name: "home", + meta: { + name: "棣栭〉", + authentication: false, // 鏄惁闇�瑕佺櫥褰曢獙璇� + keepAlive: false // 鏄惁闇�瑕佺紦瀛� + }, + component: Home + }, // { // path: "/pdf", // name: "pdf", @@ -64,4 +90,4 @@ routes, }); -export default router; +export default router; \ No newline at end of file -- Gitblit v1.9.1