Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
Details
Activity
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
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
baiguangyao
mr-julyedu
Commits
1812ad0c
Commit
1812ad0c
authored
Aug 27, 2019
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getDetail, 统计
parent
d659bd8e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletions
+17
-1
public/index.html
+3
-0
src/router/index.js
+10
-1
src/router/router-config.js
+4
-0
No files found.
public/index.html
View file @
1812ad0c
...
...
@@ -28,6 +28,9 @@
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div
id=
"root"
></div>
<script
src=
"%PUBLIC_URL%/api.js"
></script>
<span
style=
"display:none"
>
<script
type=
"text/javascript"
src=
"https://s22.cnzz.com/z_stat.php?id=1265696973&web_id=1265696973"
></script>
</span>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
...
...
src/router/index.js
View file @
1812ad0c
...
...
@@ -2,7 +2,16 @@ import React from 'react'
import
{
Switch
,
Route
}
from
'react-router-dom'
import
RouterConfig
from
'./router-config'
import
PrivateRoute
from
'./privateRoute'
// 动态改变title
// const RouteWithSubRoutes = route => {
// return (
// <Route
// exact
// {...route}
// onChange={document.title = route.name}
// />
// );
// };
export
default
function
()
{
return
(
...
...
src/router/router-config.js
View file @
1812ad0c
...
...
@@ -83,6 +83,10 @@ export default [
component
:
Detail
},
{
path
:
'/getDetail'
,
component
:
Detail
},
{
path
:
'/examination'
,
component
:
Examination
},
...
...
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