Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
graph
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李伟@五瓣科技
graph
Commits
3485911c
Commit
3485911c
authored
Nov 10, 2022
by
wenli.huang@wuban.net.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
parent
4c4bf958
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
168 additions
and
89 deletions
+168
-89
App.js
src/App.js
+166
-87
setupProxy.js
src/setupProxy.js
+2
-2
No files found.
src/App.js
View file @
3485911c
This diff is collapsed.
Click to expand it.
src/setupProxy.js
View file @
3485911c
...
...
@@ -2,12 +2,12 @@ const { createProxyMiddleware } = require('http-proxy-middleware');
module
.
exports
=
function
(
app
)
{
app
.
use
(
createProxyMiddleware
(
'
/api
'
,
{
"
target
"
:
'
http://15.161.127.241:30001
'
,
//
"target":'http://15.161.127.241:30001',
// "target": "http://54.168.125.67:26657",
// "target": "http://3.9.177.160:50080",
//
"target":'http://52.221.177.10:30181',
"
target
"
:
'
http://52.221.177.10:30181
'
,
"
changeOrigin
"
:
true
,
"
pathRewrite
"
:
{
"
^/api
"
:
"
/
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment