Commit b54f2cd4951464f9a9515baa53425cd2f879ef81

Authored by liuqimichale
1 parent 131696b7

添加mock 数据

config/dev.env.js
... ... @@ -5,5 +5,5 @@ const prodEnv = require('./prod.env')
5 5 module.exports = merge(prodEnv, {
6 6 NODE_ENV: '"development"',
7 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 14  
15 15 // Various Dev Server settings
16 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 18 autoOpenBrowser: false,
19 19 errorOverlay: true,
20 20 notifyOnErrors: true,
... ...
src/utils/request.js
... ... @@ -2,7 +2,7 @@ import axios from 'axios'
2 2  
3 3 // create an axios instance
4 4 const service = axios.create({
5   - baseURL: process.env.BASE_API, // api 的 base_url
  5 + // baseURL: process.env.BASE_API, // api 的 base_url
6 6 timeout: 5000 // request timeout
7 7 })
8 8  
... ...