Antd Design Pro2 multi-page signing, two routes using the same component, how to separate pages

here"s the thing: I"m using Antd Design Pro2 now, and then the project needs to implement multiple tabs.

clipboard.png

DomA:inputB:Input

A B

 

Apr.24,2022

Brother, I just used Antd-Pro, and as soon as I came up with boss, I asked me to solve the problem of multiple tags. So brother, can you let me learn from


the same problem? have you solved


like this? https://codesandbox.io/s/m46o...


reference: https://github.com/ant-design...


my multi-route state management is implemented by myself with redux. My previous problem was that multiple routes correspond to a single state, and then the state of multiple routes was divided into multiple ones, which was solved. As for state management how to use redux to achieve, I do not have a ready-written answer, you can Baidu.

Menu