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.
22 lines
429 B
22 lines
429 B
import { createRouter, createWebHashHistory } from 'vue-router' |
|
import HomeView from '../views/HomeView.vue' |
|
|
|
const routes = [ |
|
{ |
|
path: '/', |
|
name: 'home', |
|
component: HomeView |
|
}, |
|
{ |
|
path: '/about', |
|
name: 'about', |
|
component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue') |
|
} |
|
] |
|
|
|
const router = createRouter({ |
|
history: createWebHashHistory(), |
|
routes |
|
}) |
|
|
|
export default router
|
|
|