pack: vutron now uses typescript
This commit is contained in:
1 parent
30b0676f13
commit
5a4fa9a981
25 files changed
+580
-26
No files matched your search
@@ -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: '/'
|
||||
}
|
||||
]
|
||||
})
|
||||
Reference in new issue
Block a user