Skip to content

Commit

Permalink
mod: load screen dynamatically for error screen and second screen
Browse files Browse the repository at this point in the history
  • Loading branch information
jooy2 committed Feb 5, 2024
1 parent 427545a commit bf2d796
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MainScreen, ErrorScreen, SecondScreen } from '@/renderer/screens'
import { MainScreen } from '@/renderer/screens'
import { createRouter, createWebHashHistory } from 'vue-router'

export default createRouter({
Expand All @@ -13,14 +13,14 @@ export default createRouter({
},
{
path: '/second',
component: SecondScreen,
component: () => import('@/renderer/screens/SecondScreen.vue'),
meta: {
titleKey: 'title.second'
}
},
{
path: '/error',
component: ErrorScreen,
component: () => import('@/renderer/screens/ErrorScreen.vue'),
meta: {
titleKey: 'title.error'
}
Expand Down

0 comments on commit bf2d796

Please sign in to comment.