Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
24 rader
490 B
24 rader
490 B
import { createRouter, createWebHashHistory, RouteRecord, RouteRecordRaw } from 'vue-router'
|
|
|
|
import Home from '../views/tst/Home.vue'
|
|
|
|
const routes: Array<RouteRecordRaw> =
|
|
[
|
|
{
|
|
path: '/',
|
|
name: 'Home',
|
|
component: Home
|
|
},
|
|
{
|
|
path: '/about',
|
|
name: 'About',
|
|
component: () => import('../views/tst/About.vue')
|
|
}
|
|
]
|
|
|
|
const router = createRouter({
|
|
history: createWebHashHistory(),
|
|
routes
|
|
})
|
|
|
|
export default router
|
|
|