2023-10-17 16:02:55 +08:00
|
|
|
let BASE_URL
|
2023-11-27 18:23:17 +08:00
|
|
|
import store from "@/store/index.js"
|
2023-10-17 16:02:55 +08:00
|
|
|
// 环境
|
|
|
|
let env = "dev"
|
|
|
|
// let env = "prod"
|
|
|
|
|
2023-11-27 18:23:17 +08:00
|
|
|
|
2023-10-17 16:02:55 +08:00
|
|
|
let HTTP_REQUEST_URL
|
|
|
|
let HEADER
|
|
|
|
if (env == 'dev') {
|
2024-01-29 18:12:35 +08:00
|
|
|
BASE_URL = 'https://ceshi-suyuan-breed.lihaink.cn/'
|
|
|
|
// BASE_URL = 'http://192.168.1.25:8084/'
|
2023-10-17 16:02:55 +08:00
|
|
|
} else if (env = 'prod') {
|
2023-12-07 09:34:25 +08:00
|
|
|
BASE_URL = 'http://ceshi-suyuan.lihaink.cn/'
|
2023-10-17 16:02:55 +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
|
2023-11-27 18:23:17 +08:00
|
|
|
'TOKEN': ''
|
2023-10-17 16:02:55 +08:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export {
|
|
|
|
config
|
|
|
|
};
|