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">
-
延庆博物馆
+
延庆博物馆
-
+
首页
导航