From 46071c51ca6833c6523dd747e3bc9588fc86effc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=20=E5=85=83=E5=B1=B1?= Date: Wed, 31 Jan 2024 18:57:01 +0800 Subject: [PATCH] f --- src/router/index.js | 8 ++++---- src/views/layout.vue | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 7b67f44..79a886e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -3,11 +3,11 @@ import { createRouter, createWebHistory } from 'vue-router'; const routes = [ { path: '/', - redirect: 'navigation' + redirect: 'home' }, { - path: '/navigation', - name: 'navigation', + path: '/home', + name: 'home', component: () => import('@/views/layout.vue'), children: [ { @@ -23,7 +23,7 @@ const routes = [ component: () => import('@/views/layout.vue'), children: [ { - path: '/about1', + path: 'about1', name: 'about1', component: () => import('@/views/about/index.vue') }, diff --git a/src/views/layout.vue b/src/views/layout.vue index 2dd5647..10c3096 100644 --- a/src/views/layout.vue +++ b/src/views/layout.vue @@ -4,9 +4,10 @@ class="100vw">
-
延庆博物馆
+
延庆博物馆
-
+
首页
导航