s
This commit is contained in:
parent
196e27c1dc
commit
7037db01c5
@ -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
11
src/views/home/index.vue
Normal file
@ -0,0 +1,11 @@
|
||||
<script setup>
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
Loading…
Reference in New Issue
Block a user