47 lines
1015 B
TypeScript
47 lines
1015 B
TypeScript
import type { RouteRecordRaw } from 'vue-router';
|
|
|
|
import { BasicLayout } from '#/layouts';
|
|
import { $t } from '#/locales';
|
|
|
|
const routes: RouteRecordRaw[] = [
|
|
{
|
|
component: BasicLayout,
|
|
meta: {
|
|
icon: 'ic:baseline-view-in-ar',
|
|
keepAlive: true,
|
|
order: 1000,
|
|
title: $t('demos.title'),
|
|
},
|
|
name: 'Demos',
|
|
path: '/demos',
|
|
children: [
|
|
{
|
|
meta: {
|
|
title: $t('demos.naive'),
|
|
},
|
|
name: 'NaiveDemos',
|
|
path: '/demos/naive',
|
|
component: () => import('#/views/demos/naive/index.vue'),
|
|
},
|
|
{
|
|
meta: {
|
|
title: $t('demos.table'),
|
|
},
|
|
name: 'Table',
|
|
path: '/demos/table',
|
|
component: () => import('#/views/demos/table/index.vue'),
|
|
},
|
|
{
|
|
meta: {
|
|
title: $t('demos.form'),
|
|
},
|
|
name: 'Form',
|
|
path: '/demos/form',
|
|
component: () => import('#/views/demos/form/basic.vue'),
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
export default routes;
|