|
@@ -2,29 +2,29 @@
|
|
let devs = {
|
|
let devs = {
|
|
TITLE:'本地环境',
|
|
TITLE:'本地环境',
|
|
BASE_URL:"http://43.138.50.94:9600/",
|
|
BASE_URL:"http://43.138.50.94:9600/",
|
|
- BASE_API:"http://43.138.50.94:8880",
|
|
+ BASE_API:"http://43.138.50.94:8880/api",
|
|
EXCEL_URL:"http://43.138.50.94:7777"
|
|
EXCEL_URL:"http://43.138.50.94:7777"
|
|
}
|
|
}
|
|
let dev = {
|
|
let dev = {
|
|
TITLE:'本地环境',
|
|
TITLE:'本地环境',
|
|
BASE_URL:"http://127.0.0.1:8080",
|
|
BASE_URL:"http://127.0.0.1:8080",
|
|
- BASE_API:"http://43.138.50.94:8880",
|
|
+ BASE_API:"http://43.138.50.94:8880/api",
|
|
EXCEL_URL:"http://43.138.50.94:7777"
|
|
EXCEL_URL:"http://43.138.50.94:7777"
|
|
}
|
|
}
|
|
let test = {
|
|
let test = {
|
|
TITLE:'测试环境',
|
|
TITLE:'测试环境',
|
|
BASE_URL:"http://10.149.85.91:8000/spfm",
|
|
BASE_URL:"http://10.149.85.91:8000/spfm",
|
|
- BASE_API:"http://10.149.85.91:8000",
|
|
+ BASE_API:"http://10.149.85.91:8000/api",
|
|
EXCEL_URL:"http://10.149.85.91:7777"
|
|
EXCEL_URL:"http://10.149.85.91:7777"
|
|
}
|
|
}
|
|
let prod = {
|
|
let prod = {
|
|
TITLE:'线上环境',
|
|
TITLE:'线上环境',
|
|
BASE_URL:"http://10.230.26.15:8000/mkt",
|
|
BASE_URL:"http://10.230.26.15:8000/mkt",
|
|
- BASE_API:"http://10.230.26.15:8000",
|
|
+ BASE_API:"http://10.230.26.15:8000/api",
|
|
EXCEL_URL:"http://10.230.26.15:7777"
|
|
EXCEL_URL:"http://10.230.26.15:7777"
|
|
}
|
|
}
|
|
export const getConfig = () =>{
|
|
export const getConfig = () =>{
|
|
- switch(process.env.NODE_ENV){
|
|
+ switch(process.env.VUE_APP_ENV){
|
|
case "development":
|
|
case "development":
|
|
return dev;
|
|
return dev;
|
|
case 'test':
|
|
case 'test':
|