Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在此处输入图像描述
我有一个场景需要使用查询参数加载组件。如果 load flowPage/1234 组件正确加载。
但是如果我加载 flowPage/1234/investigation 它加载一个默认页面注意:1234 是一个查询参数
据我了解,您可能将路由嵌套在path,url by react-router-dom. 只需简单地删除exact为所有嵌套路由提供服务的 from 路由就可以了。
path,url by react-router-dom
exact