This commit is contained in:
Phoenix 2024-01-31 16:42:14 +08:00
parent 196e27c1dc
commit 7037db01c5
2 changed files with 21 additions and 2 deletions

View File

@ -2,9 +2,17 @@
import { createRouter, createWebHistory } from 'vue-router';
const routes = [
{
/* path: '/',
path: '/',
name: 'helloWorld',
component: () => import('@/views/helloWorld/index.vue')*/
redirect:'/home',
component: () => import('@/views/home/index.vue'),
children:[
{
path: '/home',
name: 'home',
component: () => import('@/views/home/index.vue')
},
]
}
// 添加其他路由配置...
];

11
src/views/home/index.vue Normal file
View File

@ -0,0 +1,11 @@
<script setup>
</script>
<template>
</template>
<style scoped>
</style>