router update

This commit is contained in:
2023-12-20 00:11:29 +08:00
parent d6ea49b9fa
commit 60705c9cdc
5 changed files with 90 additions and 50 deletions

View File

@@ -1,11 +1,24 @@
import { createRouter, createWebHashHistory } from 'vue-router'
import Index from '../views/HomeView.vue'
import index from '../views/Index.vue'
import home from "@/components/Home/HomePage.vue";
const routes = [
{
path: '/',
redirect: '/index'
},
{
path: '/index',
redirect: '/home',
name: 'index',
component: Index
component: index,
children: [
{
path: '/home',
name: 'home',
component: home
}],
},
]