diff --git a/demo/route/read.text b/demo/route/read.text index 68bad860e..e12f8a1af 100644 --- a/demo/route/read.text +++ b/demo/route/read.text @@ -20,4 +20,6 @@ 12、路由嵌套 13、路由传参 pathname 14、push与replace -15、witchRoute 使一般组件拥有路由组件的属性,返回值是一个新组件 \ No newline at end of file +15、witchRoute 使一般组件拥有路由组件的属性,返回值是一个新组件 +16、编程式路由 + \ No newline at end of file diff --git a/demo/route/src/components/child/car.jsx b/demo/route/src/components/child/car.jsx index bb80d3993..2e34eecef 100644 --- a/demo/route/src/components/child/car.jsx +++ b/demo/route/src/components/child/car.jsx @@ -8,7 +8,7 @@ import queryString from 'query-string'; import React,{Component} from 'react' class Car extends Component{ render(){ - let {search}=this.props.location + let {search}=this.props.location // search参数 const {name,id}=queryString.parse(search) return (