blob: 2216c0fb9dc06151163bccae83289b60d543743b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import { createRouter, createWebHistory } from 'vue-router';
import Home from './components/Home.vue';
import Page from './components/Page.vue';
// Define route components
const routes = [
{ path: '/', component: Home },
{ path: '/page', component: Page },
];
// Create the router instance
const router = createRouter({
history: createWebHistory(),
routes, // short for `routes: routes`
});
export default router;
|