【发布时间】:2019-01-12 10:08:42
【问题描述】:
我想尝试嵌套路由,但它不起作用
场景: 当我第一次在 /category/bags 上路由时,它正在正确呈现 但是当我在此页面上刷新时,它给了我错误页面 Not found
我尝试使用 this.props.match.url 和 this.props.match.path 但在这里我收到错误,就像没有 prop match.url
我尝试了以下链接
https://reacttraining.com/react-router/web/guides/quick-start
How to include the Match object into a ReactJs component class?
【问题讨论】:
-
看看我的回答,如果有帮助,请将其标记为已接受。
标签: javascript reactjs react-router-v4 react-router-dom