-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathadmin.config.js
More file actions
106 lines (106 loc) · 2.58 KB
/
Copy pathadmin.config.js
File metadata and controls
106 lines (106 loc) · 2.58 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
export default {
login: {
url: '/uni_modules/uni-id-pages/pages/login/login-withpwd', // 登录页面路径
},
index: {
url: '/pages/index/index', // 登录后跳转的第一个页面
},
error: {
url: '/pages/error/404', // 404 Not Found 错误页面路径
},
navBar: {
// 顶部导航
logo: '/static/logo.png', // 左侧 Logo
langs: [
{
text: '中文简体',
lang: 'zh-Hans',
},
{
text: '中文繁體',
lang: 'zh-Hant',
},
{
text: 'English',
lang: 'en',
},
],
themes: [
{
text: '默认',
value: 'default',
},
{
text: '绿柔',
value: 'green',
},
],
debug: {
enable: process.env.NODE_ENV !== 'production', //是否显示错误信息
engine: [
{
// 搜索引擎配置(每条错误信息后,会自动生成搜索链接,点击后跳转至搜索引擎)
name: '百度',
url: 'https://www.baidu.com/baidu?wd=ERR_MSG',
},
{
name: '谷歌',
url: 'https://www.google.com/search?q=ERR_MSG',
},
],
},
},
sideBar: {
// 左侧菜单
// 配置静态菜单列表(放置在用户被授权的菜单列表下边)
staticMenu: [
{
menu_id: 'demo',
text: '静态功能演示',
icon: 'admin-icons-kaifashili',
url: '',
children: [
{
menu_id: 'icons',
text: '图标',
icon: 'admin-icons-icon',
value: '/pages/demo/icons/icons',
},
{
menu_id: 'table',
text: '表格',
icon: 'admin-icons-table',
value: '/pages/demo/table/table',
},
],
},
{
menu_id: 'admim-doc-pulgin',
text: '文档与插件',
icon: 'admin-icons-eco',
url: '',
children: [
{
menu_id: 'admin-doc',
icon: 'admin-icons-doc',
text: 'uni-admin 框架文档',
value: 'https://uniapp.dcloud.net.cn/uniCloud/admin',
},
{
menu_id: 'stat-doc',
icon: 'admin-icons-help',
text: 'uni 统计教程',
value: 'https://uniapp.dcloud.net.cn/uni-stat-v2.html',
},
{
menu_id: 'admin-pulgin',
icon: 'admin-icons-pulgin',
text: 'uni-admin 插件',
value: 'https://ext.dcloud.net.cn/?cat1=7&cat2=74',
},
],
},
],
},
uniStat: {},
};