init
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router';
|
||||
import App from '../App.vue';
|
||||
import BirthdayView from '../pages/BirthdayView.vue';
|
||||
import TestingView from '../pages/TestingView.vue';
|
||||
import HomeView from '../pages/HomeView.vue';
|
||||
import NewsView from '../pages/NewsView.vue';
|
||||
|
||||
const routes = [
|
||||
{ path: '/',
|
||||
children:
|
||||
[
|
||||
{ path: '', component: BirthdayView },
|
||||
{ path: 'aero', component: TestingView },
|
||||
{ path: 'home', component: HomeView },
|
||||
{ path: 'hearsay', component: NewsView },
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes,
|
||||
});
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user