提交 | 用户 | age
|
5fb069
|
1 |
import type { AppRouteModule } from '/@/router/types'; |
V |
2 |
|
c303ec
|
3 |
import { getParentLayout, LAYOUT } from '/@/router/constant'; |
5fb069
|
4 |
|
fc4666
|
5 |
const editor: AppRouteModule = { |
c303ec
|
6 |
path: '/editor', |
V |
7 |
name: 'Editor', |
|
8 |
component: LAYOUT, |
|
9 |
redirect: '/editor/markdown', |
|
10 |
meta: { |
|
11 |
icon: 'ant-design:table-outlined', |
|
12 |
title: 'routes.demo.editor.editor', |
5fb069
|
13 |
}, |
c303ec
|
14 |
children: [ |
5fb069
|
15 |
{ |
c303ec
|
16 |
path: 'markdown', |
5fb069
|
17 |
name: 'MarkdownDemo', |
V |
18 |
component: () => import('/@/views/demo/editor/Markdown.vue'), |
|
19 |
meta: { |
190112
|
20 |
title: 'routes.demo.editor.markdown', |
5fb069
|
21 |
}, |
V |
22 |
}, |
f75425
|
23 |
{ |
c303ec
|
24 |
path: 'tinymce', |
V |
25 |
component: getParentLayout('TinymceDemo'), |
f75425
|
26 |
name: 'TinymceDemo', |
V |
27 |
meta: { |
190112
|
28 |
title: 'routes.demo.editor.tinymce', |
f75425
|
29 |
}, |
V |
30 |
redirect: '/editor/tinymce/index', |
|
31 |
children: [ |
|
32 |
{ |
|
33 |
path: 'index', |
|
34 |
name: 'TinymceBasicDemo', |
|
35 |
component: () => import('/@/views/demo/editor/tinymce/index.vue'), |
|
36 |
meta: { |
190112
|
37 |
title: 'routes.demo.editor.tinymceBasic', |
f75425
|
38 |
}, |
V |
39 |
}, |
58f988
|
40 |
{ |
V |
41 |
path: 'editor', |
|
42 |
name: 'TinymceFormDemo', |
|
43 |
component: () => import('/@/views/demo/editor/tinymce/Editor.vue'), |
|
44 |
meta: { |
190112
|
45 |
title: 'routes.demo.editor.tinymceForm', |
58f988
|
46 |
}, |
V |
47 |
}, |
f75425
|
48 |
], |
V |
49 |
}, |
5fb069
|
50 |
], |
fc4666
|
51 |
}; |
V |
52 |
|
|
53 |
export default editor; |