mkm c807a39032 开发环境配置修改与采购产品报价页面优化
- 将环境变量从生产环境切换到本地环境
- 更新本地环境的BASE_URL地址
- 在采购产品报价页面添加确认已采购的时间显示
- 优化出库价输入框,增加选择器和动态显示文本
- 修复picker确认后pickerShow未重置的问题
2024-10-12 18:10:26 +08:00

50 lines
975 B
JavaScript

let BASE_URL
let WSS_URL
import store from "@/store/user.js"
// 环境
// let env = "dev"
// let env = "prod"
// let env = "release";
let env = "local";
switch (env) {
case 'dev':
BASE_URL = 'https://test-multi-store.lihaink.cn';
WSS_URL = 'wss://test-multi-store.lihaink.cn/pull'
break;
case 'release':
BASE_URL = 'https://ceshi-multi-store.lihaink.cn';
WSS_URL = 'wss://ceshi-multi-store.lihaink.cn/pull'
break;
case 'local':
BASE_URL = 'http://192.168.1.22:8545';
WSS_URL = 'wss://ceshi-multi-store.lihaink.cn/pull'
break;
default:
BASE_URL = 'https://multi-store.lihaink.cn';
WSS_URL = 'wss://multi-store.lihaink.cn/pull'
}
let HTTP_REQUEST_URL
let HEADER
let config = {
HTTP_REQUEST_URL: BASE_URL,
WSS_URL: WSS_URL,
HEADER: {
'content-type': 'application/json',
'accept':'json',
//#ifdef MP
'Form-type': 'routine',
//#endif
//#ifdef APP-PLUS
'Form-type': 'app',
//#endif
'TOKEN': ''
},
ENV: env,
}
export {
config
};