Commit b54f2cd4951464f9a9515baa53425cd2f879ef81
1 parent
131696b7
添加mock 数据
Showing
3 changed files
with
3 additions
and
3 deletions
config/dev.env.js
@@ -5,5 +5,5 @@ const prodEnv = require('./prod.env') | @@ -5,5 +5,5 @@ const prodEnv = require('./prod.env') | ||
5 | module.exports = merge(prodEnv, { | 5 | module.exports = merge(prodEnv, { |
6 | NODE_ENV: '"development"', | 6 | NODE_ENV: '"development"', |
7 | ENV_CONFIG: '"dev"', | 7 | ENV_CONFIG: '"dev"', |
8 | - BASE_API: '"http://192.168.101.26:8089/"' | 8 | + BASE_API: '"localhost"' |
9 | }) | 9 | }) |
config/index.js
@@ -14,7 +14,7 @@ module.exports = { | @@ -14,7 +14,7 @@ module.exports = { | ||
14 | 14 | ||
15 | // Various Dev Server settings | 15 | // Various Dev Server settings |
16 | host: 'localhost', // can be overwritten by process.env.HOST | 16 | host: 'localhost', // can be overwritten by process.env.HOST |
17 | - port: 8088, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined | 17 | + port: 8094, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined |
18 | autoOpenBrowser: false, | 18 | autoOpenBrowser: false, |
19 | errorOverlay: true, | 19 | errorOverlay: true, |
20 | notifyOnErrors: true, | 20 | notifyOnErrors: true, |
src/utils/request.js
@@ -2,7 +2,7 @@ import axios from 'axios' | @@ -2,7 +2,7 @@ import axios from 'axios' | ||
2 | 2 | ||
3 | // create an axios instance | 3 | // create an axios instance |
4 | const service = axios.create({ | 4 | const service = axios.create({ |
5 | - baseURL: process.env.BASE_API, // api 的 base_url | 5 | + // baseURL: process.env.BASE_API, // api 的 base_url |
6 | timeout: 5000 // request timeout | 6 | timeout: 5000 // request timeout |
7 | }) | 7 | }) |
8 | 8 |