2024-04-25 18:02:30 +08:00
|
|
|
let BASE_URL
|
2024-04-28 18:08:57 +08:00
|
|
|
import store from "@/store/user.js"
|
2024-04-25 18:02:30 +08:00
|
|
|
// 环境
|
2024-04-30 18:08:36 +08:00
|
|
|
// let env = "dev"
|
|
|
|
let env = "prod"
|
2024-04-25 18:02:30 +08:00
|
|
|
|
2024-04-28 18:08:57 +08:00
|
|
|
switch(env){
|
2024-04-29 18:14:58 +08:00
|
|
|
case 'prod': BASE_URL = 'https://ceshi-erp.lihaink.cn';break;
|
2024-04-30 16:24:55 +08:00
|
|
|
default: BASE_URL = 'http://192.168.1.22:8787';
|
2024-04-28 18:08:57 +08:00
|
|
|
}
|
2024-04-25 18:02:30 +08:00
|
|
|
|
|
|
|
let HTTP_REQUEST_URL
|
|
|
|
let HEADER
|
2024-04-28 18:08:57 +08:00
|
|
|
|
2024-04-25 18:02:30 +08:00
|
|
|
let config = {
|
|
|
|
HTTP_REQUEST_URL: BASE_URL,
|
|
|
|
HEADER: {
|
|
|
|
'content-type': 'application/json',
|
|
|
|
//#ifdef MP
|
|
|
|
'Form-type': 'routine',
|
|
|
|
//#endif
|
|
|
|
//#ifdef APP-PLUS
|
|
|
|
'Form-type': 'app',
|
|
|
|
//#endif
|
|
|
|
'TOKEN': ''
|
2024-04-28 18:08:57 +08:00
|
|
|
},
|
|
|
|
ENV: env,
|
2024-04-25 18:02:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export {
|
|
|
|
config
|
|
|
|
};
|