You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.0 KiB
36 lines
1.0 KiB
/** |
|
* 全局变量配置 |
|
*/ |
|
module.exports = { |
|
// 应用名 |
|
name: 'Rider', |
|
// 应用logo,支持本地路径和网络路径 |
|
logo: '/static/images/logo.png', |
|
// 版本号 |
|
version: '2.1.0', |
|
// 开发环境接口Url |
|
// #ifdef H5 |
|
devUrl: 'http://192.168.0.2', |
|
// #endif |
|
// #ifndef H5 |
|
devUrl: 'http://192.168.0.2', |
|
// #endif |
|
// 线上环境接口Url |
|
prodUrl: 'http://192.168.0.2', |
|
// 后端数据的接收方式application/json;charset=UTF-8或者application/x-www-form-urlencoded;charset=UTF-8 |
|
contentType: 'application/json;charset=UTF-8', |
|
// 后端返回状态码 |
|
codeName: 'code', |
|
// 操作正常code |
|
successCode: 200, |
|
// 登录失效code |
|
invalidCode: 401, |
|
// 客户端ID |
|
clientId: 'rider', |
|
// 客户端密钥 |
|
clientSecret: 'rider_secret', |
|
// token过期时间 |
|
tokenTime: 3000, |
|
// 国密sm2公钥使用后端工程 @org.springblade.test.Sm2KeyGenerator 获取 |
|
publicKey: '04d7b3054265088bdf7d1c29ff18856ed2d3bfb769a20355d2deacc629e0a0e6bd9456ec02c970729e6a61bd21520e5b36b370ed4f89f3eebdcb8e63d9762d0c76' |
|
}
|
|
|