Ви не можете вибрати більше 25 тем
Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
24 рядки
490 B
24 рядки
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
|
|
|