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 6eb1e8a commit 7762315Copy full SHA for 7762315
src/renderer/router.ts
@@ -1,14 +1,12 @@
1
import type { RouteRecordRaw } from 'vue-router'
2
import { createWebHistory, createRouter } from 'vue-router'
3
import Main from './views/Main.vue'
4
+import Preferences from './views/Preferences.vue'
5
6
const history = createWebHistory()
7
const routes: RouteRecordRaw[] = [
8
{ path: '/', component: Main },
- {
9
- path: '/preferences',
10
- component: import('./views/Preferences.vue')
11
- }
+ { path: '/preferences', component: Preferences }
12
]
13
14
const router = createRouter({ history, routes })
0 commit comments