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

[Feature Request]: /versions url-props 添加 "正式版本" 与 "所有版本" #63

Closed
Zhengqbbb opened this issue Dec 11, 2023 · 2 comments · Fixed by #65
Closed

[Feature Request]: /versions url-props 添加 "正式版本" 与 "所有版本" #63

Zhengqbbb opened this issue Dec 11, 2023 · 2 comments · Fixed by #65

Comments

@Zhengqbbb
Copy link

Zhengqbbb commented Dec 11, 2023

需求:

希望可以有一个直接的 url 展示源的所有版本信息

当前:

package/${pkg}/versions 页面中选项卡 "正式版本" 与 "所有版本" 在点击后 url 没有发生变化

可能的实现方案

image
@elrrrrrrr
Copy link
Member

👌🏻 加个 query 参数来控制,默认记在 localStorage 里

fengmk2 pushed a commit that referenced this issue Dec 18, 2023
> 对 versions 页面添加 tags、versions query 参数, closes #63 
* 添加 `useQueryState` hook,同步 state 和 query 参数
* 支持 {prod, all},默认为 prod 且隐藏对应参数
@Zhengqbbb
Copy link
Author

好像引入了新的 Bug 😶‍🌫️

CleanShot.2023-12-19.at.10.30.37-converted.mp4

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

Successfully merging a pull request may close this issue.

2 participants