Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
Dui123
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
王天宇
Dui123
Commits
5bf019de
Commit
5bf019de
authored
Oct 11, 2021
by
wty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正一点点bug
parent
eeb807df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
+5
-11
App.js
src/App.js
+4
-10
apiConfig.js
src/config/apiConfig.js
+1
-1
No files found.
src/App.js
View file @
5bf019de
...
...
@@ -3,22 +3,16 @@ import DataCenter from "./dataCenter/Root";
import
IndexAdmin
from
"./page/indexAdmin"
;
import
Index
from
"./page/index"
;
import
Login
from
"./page/login/login"
;
import
{
Browser
Router
as
Router
,
Route
,
Switch
}
from
"react-router-dom"
;
import
{
Hash
Router
as
Router
,
Route
,
Switch
}
from
"react-router-dom"
;
function
App
()
{
return
(
<
Router
>
<
DataCenter
>
<
Switch
>
<
Route
path
=
'/login'
>
<
Login
/>
<
/Route
>
<
Route
path
=
'/index'
>
<
Index
/>
<
/Route
>
<
Route
path
=
'/admin'
>
<
IndexAdmin
/>
<
/Route
>
<
Route
exact
path
=
'/login'
component
=
{
Login
}
/
>
<
Route
exact
path
=
'/'
component
=
{
Index
}
/
>
<
Route
exact
path
=
'/admin'
component
=
{
IndexAdmin
}
/
>
<
/Switch
>
<
/DataCenter
>
<
/Router
>
...
...
src/config/apiConfig.js
View file @
5bf019de
const
apiConfig
=
{
domain
:
'http://'
+
location
.
hostname
+
':3000'
,
domain
:
'http://'
+
window
.
location
.
hostname
+
':3000'
,
}
export
default
apiConfig
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