-
Notifications
You must be signed in to change notification settings - Fork 0
/
router.ts
79 lines (78 loc) · 1.77 KB
/
router.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
export const navs = [
{
title: '目录索引',
path: null,
children: [
{ title: 'JavaScript', path: '/js' },
{ title: 'Css', path: '/css' },
{ title: 'React', path: '/react' },
{ title: '开发效率', path: '/dev-tool' },
{ title: '面试', path: '/interview' },
{ title: '脚本', path: '/sh' },
],
},
{ title: 'JavaScript', path: '/js' },
{ title: 'Css', path: '/css' },
{ title: 'React', path: '/react' },
{ title: 'Vue', path: '/vue' },
{ title: '开发效率', path: '/dev-tool' },
{ title: '面试', path: '/interview' },
{ title: '脚本', path: '/sh' },
];
export const menus = {
// 需要自定义侧边菜单的路径,没有配置的路径还是会使用自动生成的配置
'/js': [
{
// title: 'JavaScript',
path: null,
children: [
// 菜单子项(可选)
'js/array.md',
'js/promise.md',
'js/深拷贝和浅拷贝.md',
'js/手写系列.md',
'js/提效.md',
'js/排序.md',
'js/斐波那契数列.md',
'js/设计模式.md',
],
},
],
'/css': [
{
title: 'Css',
path: null,
children: ['css/center.md'],
},
],
'/react': [
{
title: 'React',
path: null,
children: [
'react/hooksSummary.md',
'react/hoc.md',
'react/reactNative.md',
'react/taro.md',
],
},
],
'/dev-tool': [
{
title: null,
path: null,
children: [
'dev-tool/port.md',
'dev-tool/mac配置多个ssh.md',
'dev-tool/github自动部署.md',
],
},
],
'/interview': [
{
title: null,
path: null,
children: ['interview/react.md', 'interview/综合.md', 'interview/http'],
},
],
};