From 19a81bb5ef98c4eaf1edd622f95ebb938b5fffc8 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期三, 23 四月 2025 18:44:44 +0800 Subject: [PATCH] loading修改 --- src/router/index.js | 45 ++++++++++++++++++++++++++++++++++----------- 1 files changed, 34 insertions(+), 11 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 6f83cad..0e7585d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -3,6 +3,7 @@ import HomeLayout from "@/layout"; import Home from "@/views/home"; import Honor from "@/views/honors"; +import details from "@/views/achievements/details.vue" const originalPush = VueRouter.prototype.push; VueRouter.prototype.push = function push(location) { @@ -11,12 +12,13 @@ Vue.use(VueRouter); -const routes = [{ +const routes = [ + { path: "/", name: "HomeLayout", component: HomeLayout, redirect: { - name: "honor", + name: "chronology", }, children: [ // 鍦ㄤ富妗嗘灦鍐� @@ -24,13 +26,12 @@ path: "/chronology", name: "chronology", meta: { - name: "棣栭〉", + name: "骞磋氨", authentication: false, // 鏄惁闇�瑕佺櫥褰曢獙璇� keepAlive: false, // 鏄惁闇�瑕佺紦瀛� }, - component: () => import("@/views/chronology/index.vue") + component: () => import("@/views/chronology/index.vue"), }, - { path: "/honor", name: "honor", @@ -39,7 +40,30 @@ }, component: Honor, }, - + { + path: "/achievements", + name: "achievements", + meta: { + name: "瀛︽湳鎴愭灉", + }, + component: () => import("@/views/achievements/index.vue"), + }, + { + path: "/details", + name: "details", + meta: { + name: "瀛︽湳鎴愭灉璇︽儏", + }, + component: details, + }, + { + path: "/directory", + name: "directory", + meta: { + name: "瀛︾敓鍚嶅綍", + }, + component: () => import("@/views/directory/index.vue"), + }, // { // path: "/login", // name: "login", @@ -49,8 +73,7 @@ // }, // component: () => import("@/views/login/login") // }, - - ] + ], }, // 涓嶅湪涓绘鏋跺唴 @@ -61,9 +84,9 @@ meta: { name: "棣栭〉", authentication: false, // 鏄惁闇�瑕佺櫥褰曢獙璇� - keepAlive: false // 鏄惁闇�瑕佺紦瀛� + keepAlive: false, // 鏄惁闇�瑕佺紦瀛� }, - component: Home + component: Home, }, // { // path: "/pdf", @@ -76,4 +99,4 @@ routes, }); -export default router; \ No newline at end of file +export default router; -- Gitblit v1.9.1