25'ten fazla konu seçemezsiniz
Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
24 satır
490 B
24 satır
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
|
|
|