33 lines
819 B
JavaScript
33 lines
819 B
JavaScript
const debug = process.env.NODE_ENV == 'development' ? true : false;
|
|
// #ifdef H5
|
|
const proxyApi = "/api"
|
|
// #endif
|
|
// #ifdef MP-WEIXIN || APP
|
|
const proxyApi = 'http://101.37.12.135:9889/cashierService' // 线上
|
|
// #endif
|
|
|
|
// #ifdef H5
|
|
const baseUrl = debug ? proxyApi : "https://cashier.sxczgkj.cn/cashierService"
|
|
const baseUrlwws = 'wss://cashier.sxczgkj.cn/cashierService' // 线上
|
|
// #endif
|
|
// #ifdef APP || MP-WEIXIN
|
|
const baseUrl = debug ? proxyApi : 'https://cashier.sxczgkj.cn/cashierService'
|
|
const baseUrlwws = 'wss://cashier.sxczgkj.cn/cashierService' // 线上
|
|
// #endif
|
|
|
|
// import VConsole from "./vConsole.js"
|
|
// if (debug) {
|
|
// // new VConsole()
|
|
// }
|
|
const version = '100'
|
|
const autoRemoveCache = {
|
|
count: 100000,
|
|
size: 100000
|
|
}
|
|
uni.conf = {
|
|
debug,
|
|
baseUrl,
|
|
version,
|
|
autoRemoveCache,
|
|
baseUrlwws
|
|
} |