From 2153eb58afd80010a1ec506198a401f918892663 Mon Sep 17 00:00:00 2001 From: 杨磊 <505174330@qq.com> Date: 星期一, 31 三月 2025 18:02:26 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/wyyDatabase --- src/router/index.js | 25 ++++++++++++++++--------- 1 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 0b29596..6f83cad 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -2,12 +2,11 @@ import VueRouter from "vue-router"; import HomeLayout from "@/layout"; import Home from "@/views/home"; - - +import Honor from "@/views/honors"; const originalPush = VueRouter.prototype.push; VueRouter.prototype.push = function push(location) { - return originalPush.call(this, location).catch(err => err); + return originalPush.call(this, location).catch((err) => err); }; Vue.use(VueRouter); @@ -17,7 +16,7 @@ name: "HomeLayout", component: HomeLayout, redirect: { - name: "home" + name: "honor", }, children: [ // 鍦ㄤ富妗嗘灦鍐� @@ -27,9 +26,18 @@ meta: { name: "棣栭〉", authentication: false, // 鏄惁闇�瑕佺櫥褰曢獙璇� - keepAlive: false // 鏄惁闇�瑕佺紦瀛� + keepAlive: false, // 鏄惁闇�瑕佺紦瀛� }, - component: ()=> import("@/views/chronology/index.vue") + component: () => import("@/views/chronology/index.vue") + }, + + { + path: "/honor", + name: "honor", + meta: { + name: "鑽h獕濂栭」", + }, + component: Honor, }, // { @@ -44,7 +52,7 @@ ] }, - + // 涓嶅湪涓绘鏋跺唴 { @@ -62,11 +70,10 @@ // name: "pdf", // component: () => import("@/components/play/pdf") // }, - ]; const router = new VueRouter({ - routes + routes, }); export default router; \ No newline at end of file -- Gitblit v1.9.1