diff --git a/config/dev.env.js b/config/dev.env.js index fcc970d..2076a83 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -9,7 +9,7 @@ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' - // BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + // BASE_API: '"http://10.18.0.94:8083/callcenter/api"' BASE_API: '"http://139.198.16.38:20007"' // BASE_API: '"http://192.168.0.123:20007"' // BASE_API: '"http://192.168.2.107:20007"' diff --git a/config/dev.env.js b/config/dev.env.js index fcc970d..2076a83 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -9,7 +9,7 @@ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' - // BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + // BASE_API: '"http://10.18.0.94:8083/callcenter/api"' BASE_API: '"http://139.198.16.38:20007"' // BASE_API: '"http://192.168.0.123:20007"' // BASE_API: '"http://192.168.2.107:20007"' diff --git a/config/index.js b/config/index.js index e2feec2..def511d 100644 --- a/config/index.js +++ b/config/index.js @@ -12,12 +12,13 @@ assetsPublicPath: '/', // 代理表,用来建一个虚拟api用来代理本机的请求,智能用于开发模式 // proxyTable: { - // [process.env.BASE_API]: { - // target: `http://127.0.0.1:8080/mock`, + // ['http://localhost:8081/spcc']: { + // target: 'http://192.170.1.10:8081', // changeOrigin: true, - // pathRewrite: { - // ['^' + process.env.BASE_API]: '' - // } + // pathRewrite:{ + // 'http://localhost:8081/spcc':'http://192.170.1.10:8081/spcc' + // }, + // proxyTimeout:300000 // }, // }, // after: require('./../mock/mock-server.js'), diff --git a/config/dev.env.js b/config/dev.env.js index fcc970d..2076a83 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -9,7 +9,7 @@ // BASE_API: '"http://rest.apizza.net/mock/cfbb939c147bb6d68372de83af189fee/"', // BASE_API: '"http://106.74.146.218:2031"' // BASE_API: '"http://192.168.0.212:8083"' - // BASE_API: '"http://10.18.0.23:8083/callcenter/api"' + // BASE_API: '"http://10.18.0.94:8083/callcenter/api"' BASE_API: '"http://139.198.16.38:20007"' // BASE_API: '"http://192.168.0.123:20007"' // BASE_API: '"http://192.168.2.107:20007"' diff --git a/config/index.js b/config/index.js index e2feec2..def511d 100644 --- a/config/index.js +++ b/config/index.js @@ -12,12 +12,13 @@ assetsPublicPath: '/', // 代理表,用来建一个虚拟api用来代理本机的请求,智能用于开发模式 // proxyTable: { - // [process.env.BASE_API]: { - // target: `http://127.0.0.1:8080/mock`, + // ['http://localhost:8081/spcc']: { + // target: 'http://192.170.1.10:8081', // changeOrigin: true, - // pathRewrite: { - // ['^' + process.env.BASE_API]: '' - // } + // pathRewrite:{ + // 'http://localhost:8081/spcc':'http://192.170.1.10:8081/spcc' + // }, + // proxyTimeout:300000 // }, // }, // after: require('./../mock/mock-server.js'), diff --git a/config/prod.env.js b/config/prod.env.js index 6fb9b89..90b07c5 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -3,7 +3,7 @@ NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', // BASE_API: '"http://10.18.0.23:8083/callcenter/api"' - // BASE_API: '"http://10.18.0.23:8084/callcenter/api"' - BASE_API: '"http://139.198.16.38:20007"' + BASE_API: '"http://10.18.0.94:8083/callcenter/api"' + // BASE_API: '"http://139.198.16.38:20007"' // BASE_API: '"http://127.0.0.1:20007"' }