Phoenix 8 months ago
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')
},
]
}
// 添加其他路由配置...
];

@ -0,0 +1,11 @@
<script setup>
</script>
<template>
</template>
<style scoped>
</style>
Loading…
Cancel
Save