daShangDao_miniProgram/utils/config.js
2025-11-24 10:25:20 +08:00

55 lines
1.0 KiB
JavaScript

// 项目配置
const config = {
// API基础URL
baseURL: 'https://api.buzhiyushu.cn',
// 客户端ID
// clientId: 'e5cd7e4891bf95d1d19206ce24a7b32e',
clientId: '1400a724f627ddc73d8f4dd344f80a5e',
// 授权类型
// grantType: 'social',
grantType: 'xcx',
// 是否启用验证码
captchaEnabled: true,
// 请求超时时间(毫秒)
timeout: 10000,
// 默认请求头
headers: {
'Content-Type': 'application/json',
'cientid': '1400a724f627ddc73d8f4dd344f80a5e',
'isToken': 'false',
'isEncrypt': 'false',
'repeatSubmit': 'false'
},
// 多租户相关配置
tenant: {
enabled: true,
listUrl: '/auth/tenant/list'
},
// 验证码相关配置
captcha: {
url: '/auth/code'
},
// 登录相关配置
login: {
url: '/auth/login'
},
// 书籍相关接口
book: {
records: '/zhishu/shopGoods/xcx'
},
// 仓库接口
// warehouse: {
// select: '/shelves/shelves/namelist'
// }
}
export default config