pack: vutron now uses typescript

This commit is contained in:
leejooy96 committed 2022-10-18 11:08:55 +09:00
1 parent 30b0676f13
commit 5a4fa9a981
25 files changed
+580 -26

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
import { createRouter, createWebHashHistory } from 'vue-router/dist/vue-router.esm-bundler'
import { MainScreen, ErrorScreen } from '@/renderer/screens'
export default createRouter({
history: createWebHashHistory(),
routes: [
{
path: '/',
component: MainScreen,
meta: {
title: 'Main'
}
},
{
path: '/error',
component: ErrorScreen,
meta: {
title: 'Unknown error occurred'
}
},
{
path: '/:pathMatch(.*)*',
redirect: '/'
}
]
})