Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ds147000
/
react-native-project-storage
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 09d078fe
authored
Jun 03, 2020
by
GGbong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加入Mock配置
1 parent
276f0a77
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
README.md
src/config/app.js
README.md
View file @
09d078f
...
...
@@ -12,6 +12,11 @@ npm i
npm run android
```
### 开启mock测试
```
npm run mock
```
### Lints and fixes files
```
npm run lint
...
...
src/config/app.js
View file @
09d078f
...
...
@@ -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'
},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment