init
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router'
|
||||
const routes: RouteRecordRaw[] = [
|
||||
{
|
||||
path: '/:pathMatch(.*)',
|
||||
redirect: '/',
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
name: 'home',
|
||||
component: defineAsyncComponent(() => import('@/pages/Home/HomeView.vue')),
|
||||
},
|
||||
]
|
||||
|
||||
const router = createRouter({
|
||||
// routes,
|
||||
routes,
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
})
|
||||
|
||||
export default router
|
||||
Reference in New Issue
Block a user