From f424f33f7a885cc95c9a8e3bc8763e5425746064 Mon Sep 17 00:00:00 2001 From: Phoenix <64720302+Concur-max@users.noreply.github.com> Date: Wed, 31 Jan 2024 16:54:10 +0800 Subject: [PATCH 1/3] s --- src/router/index.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 681be59..da6a3c0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -6,14 +6,24 @@ const routes = [ name: 'helloWorld', redirect:'/home', component: () => import('@/views/home/index.vue'), - children:[ + }, + { + path: '/home', + name: 'home', + component: () => import('@/views/home/index.vue'), + children: [ { path: '/home', name: 'home', - component: () => import('@/views/home/index.vue') + component: () => import('@/views/home/index.vue'), + }, + { + path: '/home', + name: 'home', + component: () => import('@/views/home/index.vue'), }, ] - } + }, // 添加其他路由配置... ]; From fa7fe341c8f70e2451ebe83de1da64235ffd9764 Mon Sep 17 00:00:00 2001 From: Phoenix <64720302+Concur-max@users.noreply.github.com> Date: Wed, 31 Jan 2024 16:57:46 +0800 Subject: [PATCH 2/3] s --- src/router/index.js | 17 +++++------------ src/views/navigation/index.vue | 13 +++++++++++++ 2 files changed, 18 insertions(+), 12 deletions(-) create mode 100644 src/views/navigation/index.vue diff --git a/src/router/index.js b/src/router/index.js index da6a3c0..e82d6de 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -3,9 +3,7 @@ import { createRouter, createWebHistory } from 'vue-router'; const routes = [ { path: '/', - name: 'helloWorld', - redirect:'/home', - component: () => import('@/views/home/index.vue'), + redirect:'home' }, { path: '/home', @@ -13,15 +11,10 @@ const routes = [ component: () => import('@/views/home/index.vue'), children: [ { - path: '/home', - name: 'home', - component: () => import('@/views/home/index.vue'), - }, - { - path: '/home', - name: 'home', - component: () => import('@/views/home/index.vue'), - }, + path: 'navigation', + name: 'navigation', + component: () => import('@/views/navigation/index.vue'), + } ] }, // 添加其他路由配置... diff --git a/src/views/navigation/index.vue b/src/views/navigation/index.vue new file mode 100644 index 0000000..829dbd0 --- /dev/null +++ b/src/views/navigation/index.vue @@ -0,0 +1,13 @@ + + + + + From e5bec097607f6d44584f5084996ebaec1e63819c Mon Sep 17 00:00:00 2001 From: Phoenix <64720302+Concur-max@users.noreply.github.com> Date: Wed, 31 Jan 2024 17:01:41 +0800 Subject: [PATCH 3/3] s --- src/App.vue | 14 +----------- src/components/HelloWorld.vue | 40 ---------------------------------- src/views/navigation/index.vue | 2 +- 3 files changed, 2 insertions(+), 54 deletions(-) delete mode 100644 src/components/HelloWorld.vue diff --git a/src/App.vue b/src/App.vue index f0be851..4188650 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,4 @@ diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue deleted file mode 100644 index f5e4f53..0000000 --- a/src/components/HelloWorld.vue +++ /dev/null @@ -1,40 +0,0 @@ - - - - - diff --git a/src/views/navigation/index.vue b/src/views/navigation/index.vue index 829dbd0..bb2ff13 100644 --- a/src/views/navigation/index.vue +++ b/src/views/navigation/index.vue @@ -8,6 +8,6 @@ -