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

path格式问题 #37

Closed
like5188 opened this issue Apr 15, 2022 · 1 comment
Closed

path格式问题 #37

like5188 opened this issue Apr 15, 2022 · 1 comment

Comments

@like5188
Copy link

like5188 commented Apr 15, 2022

如果一个path中带有查询参数,应该怎么定义呢?比如:/xxx/<id>/xxx?a=<a>&b=<b>,但是这样编译报错

@weigao123
Copy link
Collaborator

weigao123 commented May 15, 2022

定义
/xxx/<id>/xxx
不要在path里定义?的部分,这部分会自动解析的
然后可以在bundle里取出 id、a、b 三个参数

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