Commit 1812ad0c by wangshuo

getDetail, 统计

parent d659bd8e
...@@ -28,6 +28,9 @@ ...@@ -28,6 +28,9 @@
<noscript>You need to enable JavaScript to run this app.</noscript> <noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div> <div id="root"></div>
<script src="%PUBLIC_URL%/api.js"></script> <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. This HTML file is a template.
If you open it directly in the browser, you will see an empty page. If you open it directly in the browser, you will see an empty page.
......
...@@ -2,7 +2,16 @@ import React from 'react' ...@@ -2,7 +2,16 @@ import React from 'react'
import { Switch, Route } from 'react-router-dom' import { Switch, Route } from 'react-router-dom'
import RouterConfig from './router-config' import RouterConfig from './router-config'
import PrivateRoute from './privateRoute' import PrivateRoute from './privateRoute'
// 动态改变title
// const RouteWithSubRoutes = route => {
// return (
// <Route
// exact
// {...route}
// onChange={document.title = route.name}
// />
// );
// };
export default function () { export default function () {
return ( return (
......
...@@ -83,6 +83,10 @@ export default [ ...@@ -83,6 +83,10 @@ export default [
component: Detail component: Detail
}, },
{ {
path: '/getDetail',
component: Detail
},
{
path: '/examination', path: '/examination',
component: Examination component: Examination
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment