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

关于保存之后总是会回滚到图标列表顶部的问题 #2708

Open
haifug opened this issue Dec 12, 2024 · 0 comments
Open

关于保存之后总是会回滚到图标列表顶部的问题 #2708

haifug opened this issue Dec 12, 2024 · 0 comments

Comments

@haifug
Copy link

haifug commented Dec 12, 2024

需求背景

每次修改完一个图标,点击保存之后,页面总是会滚动到图标列表的顶部,问题导致的原因,应该是前端重新请求了图标列表接口,如果我需要连续不断地修改一些图标,导致我每次都要重新滚动到下面,慢慢寻找上次滚动的位置,如果图标过多的话,会导致寻找起来很麻烦,体验很差

解决方案

可以在保存的时候,前端记录一下保存的图标在图标列表的位置,然后在保存和重新请求图标列表之后,自动滚动到相应的位置

相关截图

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

1 participant