app.js
1.22 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
const APP = {
/** @description token存储的名称 */
tokenName: 'jwt',
/** @description token在存储的时长,单位 天 */
tokenExpires: 7,
/**@description 初始的HTTP请求的全局header头*/
header: { },
/**@description API基础请求地址*/
baseUrl: {
/**@description mock代理的地址*/
dev: {
prot: 9000,
host: '192.168.1.141', // 替换为本地IP
origin: () => `http://${APP.baseUrl.dev.host}:${APP.baseUrl.dev.prot}`
},
/**@description 开放环境请求地址*/
proxy: 'http://gateway-dev.b2bwings.com',
/**@description 生产环境请求地址*/
pro: 'https://gateway.b2bwings.com'
},
/**@description 应用的登陆API的PATH*/
loginPath: '/user/sysLogin/login',
/**@description 401页面地址,用于提醒用户登陆状态失效*/
error404: '/404',
/**@description 静态资源目录,必须。用于菜单图标显示*/
STATIS_URL: 'https://b2bwings-system-image.oss-cn-shenzhen.aliyuncs.com/',
/**@description tab按钮颜色配置*/
tabConfig: {
activeTintColor: '#6E4DB3',
inactiveTintColor: 'gray'
}
}
exports.APP = APP