router update
This commit is contained in:
@@ -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
|
||||
}],
|
||||
},
|
||||
|
||||
]
|
||||
|
Reference in New Issue
Block a user