Performance optimizations

This commit is contained in:
2025-10-22 15:22:56 +03:30
parent 8598ed76db
commit 90159f9468
4 changed files with 25 additions and 15 deletions
+10 -12
View File
@@ -1,37 +1,35 @@
import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router'
import HomeView from '@/views/HomeView.vue'
import NotFoundView from '@/views/NotFoundView.vue'
import ListView from '@/views/ListView.vue'
import DetailsView from '@/views/DetailsView.vue'
import AddView from '@/views/AddView.vue'
import WatchView from '@/views/WatchView.vue'
const routes: RouteRecordRaw[] = [
{ path: '/:pathMatch(.*)*', name: 'NotFound', component: NotFoundView },
{
path: '/:pathMatch(.*)*',
name: 'NotFound',
component: () => import('@/views/NotFoundView.vue'),
},
{
path: '/',
name: 'home',
component: HomeView,
component: () => import('@/views/HomeView.vue'),
},
{
path: '/list',
name: 'list',
component: ListView,
component: () => import('@/views/ListView.vue'),
},
{
path: '/details/:id',
name: 'details',
component: DetailsView,
component: () => import('@/views/DetailsView.vue'),
},
{
path: '/add',
name: 'add',
component: AddView,
component: () => import('@/views/AddView.vue'),
},
{
path: '/watch/:name/:id',
name: 'watch',
component: WatchView,
component: () => import('@/views/WatchView.vue'),
},
]