|
@@ -0,0 +1,54 @@
|
|
|
+'use strict'
|
|
|
+let devs = {
|
|
|
+ TITLE:'本地环境',
|
|
|
+ BASE_URL:"http://43.138.50.94:9600/", //本地环境
|
|
|
+ BASE_API:"http://43.138.50.94:8880/api",//工作流本地环境
|
|
|
+ EXCEL_URL:"http://43.138.50.94:7777", //本地excel路径
|
|
|
+ provincialWorkOrderAreafresourceId:'a682dc9f-2fea-11ed-a6ed-02427ba2d388',//通用工单地市
|
|
|
+ provincialWorkOrderfresourceId:'08368848-2fde-11ed-a6ed-02427ba2d388',//通用工单省
|
|
|
+ riskMaterialsfresourceId:'c9104902-6575-11ed-8e1e-d6cd97160e00',//风险防控
|
|
|
+}
|
|
|
+let dev = {
|
|
|
+ TITLE:'本地环境',
|
|
|
+ BASE_URL:"http://127.0.0.1:8080", //本地环境
|
|
|
+ BASE_API:"http://43.138.50.94:8880/api",//工作流本地环境
|
|
|
+ EXCEL_URL:"http://43.138.50.94:7777", //本地excel路径
|
|
|
+ provincialWorkOrderAreafresourceId:'a682dc9f-2fea-11ed-a6ed-02427ba2d388',//通用工单地市
|
|
|
+ provincialWorkOrderfresourceId:'08368848-2fde-11ed-a6ed-02427ba2d388',//通用工单省
|
|
|
+ riskMaterialsfresourceId:'c9104902-6575-11ed-8e1e-d6cd97160e00',//风险防控
|
|
|
+}
|
|
|
+let test = {
|
|
|
+ TITLE:'测试环境',
|
|
|
+ BASE_URL:"http://10.149.85.91:8000/spfm", //测试环境
|
|
|
+ BASE_API:"http://10.149.85.91:8000/api",//工作流测试环境
|
|
|
+ EXCEL_URL:"http://10.149.85.91:7777", //测试excel路径
|
|
|
+ provincialWorkOrderAreafresourceId:'33b0af93-b1ce-11ed-be6b-00505687dcd3',//通用工单地市
|
|
|
+ provincialWorkOrderfresourceId:'4fdbb96e-8bfd-11ed-8988-00505687dcd3',//通用工单省
|
|
|
+ riskMaterialsfresourceId:'3124a2d4-7209-11ed-8d6f-00505687dcd3',//风险防控
|
|
|
+}
|
|
|
+let prod = {
|
|
|
+ TITLE:'线上环境',
|
|
|
+ BASE_URL:"http://10.230.26.15:8000/mkt", //线上环境
|
|
|
+ BASE_API:"http://10.230.26.15:8000/api",//工作流线上环境
|
|
|
+ EXCEL_URL:"http://10.230.26.15:7777", //线上excel路径
|
|
|
+ provincialWorkOrderAreafresourceId:'db26384e-b984-11ed-afb6-e00084564cce',//通用工单地市
|
|
|
+ provincialWorkOrderfresourceId:'9b83efc7-b984-11ed-afb6-e00084564cce',//通用工单省
|
|
|
+ riskMaterialsfresourceId:'canvas',//风险防控
|
|
|
+}
|
|
|
+export const getConfig = () =>{
|
|
|
+ switch(process.env.VUE_APP_ENV){
|
|
|
+ case "development":
|
|
|
+ return dev;
|
|
|
+ case 'test':
|
|
|
+ return test;
|
|
|
+ case 'production':
|
|
|
+ return prod
|
|
|
+ case 'devs':
|
|
|
+ return devs;
|
|
|
+ }
|
|
|
+}
|
|
|
+export default getConfig;
|
|
|
+
|
|
|
+// 根据环境引入不同配置 process.env.ENV_CONFIG ex:dev.conf.js
|
|
|
+
|
|
|
+// module.exports = config
|