Commit 09d078fe by GGbong

加入Mock配置

1 parent 276f0a77
Showing with 8 additions and 0 deletions
......@@ -12,6 +12,11 @@ npm i
npm run android
```
### 开启mock测试
```
npm run mock
```
### Lints and fixes files
```
npm run lint
......
......@@ -10,12 +10,15 @@ const APP = {
/**@description API基础请求地址*/
baseUrl: {
/**@description mock代理的地址*/
dev: {
prot: 9000,
host: '192.168.1.141', // 替换为本地IP
origin: () => `http://${APP.baseUrl.dev.host}:${APP.baseUrl.dev.prot}`
},
/**@description 开放环境请求地址*/
proxy: 'http://gateway-dev.b2bwings.com',
/**@description 生产环境请求地址*/
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!