This commit is contained in:
Phoenix 2024-01-31 16:57:46 +08:00
parent f424f33f7a
commit fa7fe341c8
2 changed files with 18 additions and 12 deletions

View File

@ -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'),
}
]
},
// 添加其他路由配置...

View File

@ -0,0 +1,13 @@
<script setup>
</script>
<template>
<div>
导航
</div>
</template>
<style scoped>
</style>