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

动态路由不同参数,打开页面都是一样的 #96

Open
lzt-T opened this issue Jun 7, 2023 · 1 comment
Open

动态路由不同参数,打开页面都是一样的 #96

lzt-T opened this issue Jun 7, 2023 · 1 comment

Comments

@lzt-T
Copy link

lzt-T commented Jun 7, 2023

image
有办法改吗,id已经被定死了类似于 /user/:id。路由表不是写死的

@TSjianjiao
Copy link

TSjianjiao commented Aug 9, 2023

这个只有你对id做一下特殊处理,比如把参数当id

<KeepAlive id={Object.values(params).join()}/>

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

2 participants