You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
557 B
29 lines
557 B
import { createRouter, createWebHistory } from 'vue-router'
|
|
import HomeView from '../views/HomeView.vue'
|
|
import AboutView from '../views/AboutView.vue'
|
|
import ContactView from '../views/ContactView.vue'
|
|
|
|
const routes = [
|
|
{
|
|
path: '/',
|
|
name: 'home',
|
|
component: HomeView
|
|
},
|
|
{
|
|
path: '/contact',
|
|
name: 'contact',
|
|
component: ContactView
|
|
},
|
|
{
|
|
path: '/about',
|
|
name: 'about',
|
|
component: AboutView
|
|
}
|
|
]
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(process.env.BASE_URL),
|
|
routes
|
|
})
|
|
|
|
export default router
|
|
|