setting.js
1.37 KB
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
/*
* @Descripttion:
* @version:
* @Author: limin
* @Date: 2020-12-23 17:06:59
* @LastEditors: limin
* @LastEditTime: 2020-12-23 18:33:09
*/
export default {
// 快捷键
// 支持快捷键 例如 ctrl+shift+s
hotkey: {
search: {
open: 's',
close: 'esc'
}
},
// 侧边栏默认折叠状态
menu: {
asideCollapse: false
},
// 在读取持久化数据失败时默认页面
page: {
opened: [
{
name: 'index',
fullPath: '/index',
meta: {
title: '首页',
auth: false
}
}
]
},
// 菜单搜索
search: {
enable: true
},
// 注册的主题
theme: {
list: [
{
title: 'classic',
name: 'classic',
color: '#2A58AD',
preview: 'image/theme/classic/preview@2x.png'
},
{
title: 'dark',
name: 'dark',
color: '#314256',
preview: 'image/theme/dark/preview@2x.png'
},
{
title: 'blue',
name: 'blue',
color: '#652DED',
preview: 'image/theme/blue/preview@2x.png'
},
{
title: 'plane',
name: 'plane',
color: '#377DE7',
backgroundImage: 'image/theme/plane/bg.jpg',
preview: 'image/theme/plane/preview@2x.png'
}
]
},
// 是否默认开启页面切换动画
transition: {
active: true
}
}