Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么匹配/:id/:name这种路由? #29

Open
tlj999 opened this issue Nov 26, 2019 · 4 comments
Open

怎么匹配/:id/:name这种路由? #29

tlj999 opened this issue Nov 26, 2019 · 4 comments

Comments

@tlj999
Copy link

tlj999 commented Nov 26, 2019

No description provided.

@bailihuiyue
Copy link

这个暂时无解

@tlj999
Copy link
Author

tlj999 commented Nov 29, 2019

这个暂时无解

我试过 path-to-regexp 这个可以匹配
pathToRegexp('/ads.:id/:name').test('/ads/1/name')

@993318936
Copy link

image
这几天正在研究调试这个,把BasicLayout.js里渲染Tab的代码更换成React.createElement可以正常读取路由带的id,还没有调试完不知道有没有别的问题,可以试试

@kuhami
Copy link
Owner

kuhami commented Jun 22, 2020

这个问题已经解决 访问地址-多功能Table-查看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants