mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-28 00:42:12 +08:00
feat: add markdown component
This commit is contained in:
27
src/router/routes/modules/demo/editor.ts
Normal file
27
src/router/routes/modules/demo/editor.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import type { AppRouteModule } from '/@/router/types';
|
||||
|
||||
import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
|
||||
|
||||
export default {
|
||||
layout: {
|
||||
path: '/editor',
|
||||
name: 'Editor',
|
||||
component: PAGE_LAYOUT_COMPONENT,
|
||||
redirect: '/editor/markdown',
|
||||
meta: {
|
||||
icon: 'ant-design:table-outlined',
|
||||
title: '编辑器',
|
||||
},
|
||||
},
|
||||
|
||||
routes: [
|
||||
{
|
||||
path: '/markdown',
|
||||
name: 'MarkdownDemo',
|
||||
component: () => import('/@/views/demo/editor/Markdown.vue'),
|
||||
meta: {
|
||||
title: 'markdown编辑器',
|
||||
},
|
||||
},
|
||||
],
|
||||
} as AppRouteModule;
|
Reference in New Issue
Block a user