vue-vben-admin/src/router/menus/modules/demo/editor.ts

32 lines
691 B
TypeScript
Raw Normal View History

2020-10-19 22:09:03 +08:00
import type { MenuModule } from '/@/router/types.d';
2020-12-09 00:12:44 +08:00
import { t } from '/@/hooks/web/useI18n';
2020-11-26 21:10:21 +08:00
2020-10-19 22:09:03 +08:00
const menu: MenuModule = {
orderNo: 500,
menu: {
2020-12-09 00:12:44 +08:00
name: t('routes.demo.editor.editor'),
2020-10-19 22:09:03 +08:00
path: '/editor',
children: [
{
2020-10-22 23:56:33 +08:00
path: 'markdown',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.editor.markdown'),
2020-10-19 22:09:03 +08:00
},
2020-10-22 23:56:33 +08:00
{
path: 'tinymce',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.editor.tinymce'),
2020-10-22 23:56:33 +08:00
children: [
{
path: 'index',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.editor.tinymceBasic'),
2020-10-22 23:56:33 +08:00
},
{
path: 'editor',
2020-12-09 00:12:44 +08:00
name: t('routes.demo.editor.tinymceForm'),
},
2020-10-22 23:56:33 +08:00
],
},
2020-10-19 22:09:03 +08:00
],
},
};
export default menu;