mod: load screen dynamatically for error screen and second screen
This commit is contained in:
1 parent
427545a3d6
commit
bf2d7966ae
1 file changed
+3
-3
@@ -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({
|
||||
@@ -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'
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user