Skip to content

Commit 7762315

Browse files
committed
fix(router): import all views at once
1 parent 6eb1e8a commit 7762315

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/renderer/router.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
import type { RouteRecordRaw } from 'vue-router'
22
import { createWebHistory, createRouter } from 'vue-router'
33
import Main from './views/Main.vue'
4+
import Preferences from './views/Preferences.vue'
45

56
const history = createWebHistory()
67
const routes: RouteRecordRaw[] = [
78
{ path: '/', component: Main },
8-
{
9-
path: '/preferences',
10-
component: import('./views/Preferences.vue')
11-
}
9+
{ path: '/preferences', component: Preferences }
1210
]
1311

1412
const router = createRouter({ history, routes })

0 commit comments

Comments
 (0)