s
This commit is contained in:
parent
f424f33f7a
commit
fa7fe341c8
@ -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'),
|
||||
}
|
||||
]
|
||||
},
|
||||
// 添加其他路由配置...
|
||||
|
13
src/views/navigation/index.vue
Normal file
13
src/views/navigation/index.vue
Normal file
@ -0,0 +1,13 @@
|
||||
<script setup>
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
导航
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user