We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5b6c67 commit 5270481Copy full SHA for 5270481
src/router.ts
@@ -1,6 +1,5 @@
1
import type { RouteParams, RouteRecordRaw } from 'vue-router'
2
import { createRouter, createWebHashHistory } from 'vue-router'
3
-import Home from './pages/Home.vue'
4
import { isAuthorized } from './store/user'
5
6
export type AppRouteNames =
@@ -20,17 +19,17 @@ export const routes: RouteRecordRaw[] = [
20
19
{
21
name: 'global-feed',
22
path: '/',
23
- component: Home,
+ component: () => import('./pages/Home.vue'),
24
},
25
26
name: 'my-feed',
27
path: '/my-feeds',
28
29
30
31
name: 'tag',
32
path: '/tag/:tag',
33
34
35
36
name: 'article',
0 commit comments