33 lines
559 B
JavaScript
33 lines
559 B
JavaScript
let BASE_URL
|
|
import store from "@/store/index.js"
|
|
// 环境
|
|
// let env = "dev"
|
|
let env = "prod"
|
|
|
|
|
|
let HTTP_REQUEST_URL
|
|
let HEADER
|
|
if (env == 'dev') {
|
|
BASE_URL = 'https://ceshi-suyuan-breed.lihaink.cn/'
|
|
// BASE_URL = 'http://192.168.1.24:8084/'
|
|
} else if (env = 'prod') {
|
|
BASE_URL = 'https://suyuan-breed.lihaink.cn/'
|
|
}
|
|
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': ''
|
|
|
|
}
|
|
}
|
|
|
|
export {
|
|
config
|
|
}; |