
* chore: init project * chore: install element-plus * chore: locale config * fix: eslint error * chore: merge from main * fix: lint * chore: finish todo * chore: update comments * chore: update * fix: lint error * chore: add unplugin-element-plus * chore: add useElementPlusDesignTokens * chore: configure some color
32 lines
684 B
TypeScript
32 lines
684 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('page.demos.title'),
|
|
},
|
|
name: 'Demos',
|
|
path: '/demos',
|
|
children: [
|
|
{
|
|
meta: {
|
|
icon: 'mdi:shield-key-outline',
|
|
title: $t('page.demos.element-plus'),
|
|
},
|
|
name: 'NaiveDemos',
|
|
path: '/demos/element',
|
|
component: () => import('#/views/demos/element/index.vue'),
|
|
},
|
|
],
|
|
},
|
|
];
|
|
|
|
export default routes;
|