Commit 09d078fe by GGbong

加入Mock配置

1 parent 276f0a77
Showing with 8 additions and 0 deletions
...@@ -12,6 +12,11 @@ npm i ...@@ -12,6 +12,11 @@ npm i
npm run android npm run android
``` ```
### 开启mock测试
```
npm run mock
```
### Lints and fixes files ### Lints and fixes files
``` ```
npm run lint npm run lint
......
...@@ -10,12 +10,15 @@ const APP = { ...@@ -10,12 +10,15 @@ const APP = {
/**@description API基础请求地址*/ /**@description API基础请求地址*/
baseUrl: { baseUrl: {
/**@description mock代理的地址*/
dev: { dev: {
prot: 9000, prot: 9000,
host: '192.168.1.141', // 替换为本地IP host: '192.168.1.141', // 替换为本地IP
origin: () => `http://${APP.baseUrl.dev.host}:${APP.baseUrl.dev.prot}` origin: () => `http://${APP.baseUrl.dev.host}:${APP.baseUrl.dev.prot}`
}, },
/**@description 开放环境请求地址*/
proxy: 'http://gateway-dev.b2bwings.com', proxy: 'http://gateway-dev.b2bwings.com',
/**@description 生产环境请求地址*/
pro: 'https://gateway.b2bwings.com' pro: 'https://gateway.b2bwings.com'
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!