Files
gdt-tool/src/renderer/router/index.ts
T

27 lines
532 B
TypeScript

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: '/'
}
]
})