diff --git a/config/dev.env.js b/config/dev.env.js index 0da5139..b654c4c 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // 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://119.254.103.80:14537"' + BASE_API: '"http://111.198.10.15:12204"' + // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' }) diff --git a/config/dev.env.js b/config/dev.env.js index 0da5139..b654c4c 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // 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://119.254.103.80:14537"' + BASE_API: '"http://111.198.10.15:12204"' + // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' }) diff --git a/config/index.js b/config/index.js index 113c70f..8abd37a 100644 --- a/config/index.js +++ b/config/index.js @@ -11,8 +11,16 @@ assetsSubDirectory: 'static', assetsPublicPath: '/', // 代理表,用来建一个虚拟api用来代理本机的请求,智能用于开发模式 - proxyTable: {}, - + // proxyTable: { + // [process.env.BASE_API]: { + // target: `http://127.0.0.1:8080/mock`, + // changeOrigin: true, + // pathRewrite: { + // ['^' + process.env.BASE_API]: '' + // } + // }, + // }, + // after: require('./../mock/mock-server.js'), // Various Dev Server settings // host: '0.0.0.0', // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined diff --git a/config/dev.env.js b/config/dev.env.js index 0da5139..b654c4c 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // 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://119.254.103.80:14537"' + BASE_API: '"http://111.198.10.15:12204"' + // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' }) diff --git a/config/index.js b/config/index.js index 113c70f..8abd37a 100644 --- a/config/index.js +++ b/config/index.js @@ -11,8 +11,16 @@ assetsSubDirectory: 'static', assetsPublicPath: '/', // 代理表,用来建一个虚拟api用来代理本机的请求,智能用于开发模式 - proxyTable: {}, - + // proxyTable: { + // [process.env.BASE_API]: { + // target: `http://127.0.0.1:8080/mock`, + // changeOrigin: true, + // pathRewrite: { + // ['^' + process.env.BASE_API]: '' + // } + // }, + // }, + // after: require('./../mock/mock-server.js'), // Various Dev Server settings // host: '0.0.0.0', // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined diff --git a/config/prod.env.js b/config/prod.env.js index ac8196d..a0dc3de 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,5 +2,5 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', - BASE_API: '"http://192.168.0.212:8083"' + BASE_API: '"http://192.168.8.201:8083"' } diff --git a/config/dev.env.js b/config/dev.env.js index 0da5139..b654c4c 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,8 +8,8 @@ NODE_ENV: '"development"', // 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://119.254.103.80:14537"' + BASE_API: '"http://111.198.10.15:12204"' + // BASE_API: '"http://139.198.16.38:20005"' // BASE_API: '"http://192.168.0.225:8083"' // BASE_API: '"http://127.0.0.1:8083"' }) diff --git a/config/index.js b/config/index.js index 113c70f..8abd37a 100644 --- a/config/index.js +++ b/config/index.js @@ -11,8 +11,16 @@ assetsSubDirectory: 'static', assetsPublicPath: '/', // 代理表,用来建一个虚拟api用来代理本机的请求,智能用于开发模式 - proxyTable: {}, - + // proxyTable: { + // [process.env.BASE_API]: { + // target: `http://127.0.0.1:8080/mock`, + // changeOrigin: true, + // pathRewrite: { + // ['^' + process.env.BASE_API]: '' + // } + // }, + // }, + // after: require('./../mock/mock-server.js'), // Various Dev Server settings // host: '0.0.0.0', // can be overwritten by process.env.HOST port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined diff --git a/config/prod.env.js b/config/prod.env.js index ac8196d..a0dc3de 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,5 +2,5 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', - BASE_API: '"http://192.168.0.212:8083"' + BASE_API: '"http://192.168.8.201:8083"' } diff --git a/src/main.js b/src/main.js index d90acc0..5630ee7 100644 --- a/src/main.js +++ b/src/main.js @@ -23,8 +23,8 @@ * it will intercept your request, so you won't see the request in the network. * If you remove `../mock` it will automatically request easy-mock data. */ -import './../mock' // simulation data -require('./../mock') +// import './../mock' // simulation data +// require('./../mock') // 兼容IE11 import 'babel-polyfill'