40 lines
806 B
TypeScript
40 lines
806 B
TypeScript
import { RouteRecordRaw } from 'vue-router';
|
|
|
|
const routes: RouteRecordRaw[] = [
|
|
{
|
|
path: '/',
|
|
component: () => import('layouts/MainLayout.vue'),
|
|
children: [
|
|
{
|
|
path: '',
|
|
component: () => import('pages/IndexPage.vue'),
|
|
name: 'index',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: '/login',
|
|
component: () => import('pages/LoginPage.vue'),
|
|
name: 'login',
|
|
meta: {
|
|
accountRoute: true,
|
|
},
|
|
},
|
|
// {
|
|
// path: '/register',
|
|
// component: () => import('pages/RegisterPage.vue'),
|
|
// name: 'register'
|
|
// meta: {
|
|
// accountRoute: true,
|
|
// }
|
|
// },
|
|
// Always leave this as last one,
|
|
// but you can also remove it
|
|
{
|
|
path: '/:catchAll(.*)*',
|
|
component: () => import('pages/ErrorNotFound.vue'),
|
|
},
|
|
];
|
|
|
|
export default routes;
|