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

[Bug]: 列表搜索有时变更快速搜索框的过滤条件回车发出的请求会把搜索表单中的过滤条件还原为上次的条件,接口请求的条件也是使用上次的 #7112

Open
yinlianghui opened this issue Jan 8, 2025 · 1 comment
Assignees
Labels
bug Something isn't working needs triaging 需要分类
Milestone

Comments

@yinlianghui
Copy link
Contributor

Description

image

Steps To Reproduce 重现步骤

  1. 点击列表右上角搜索按钮展开顶部搜索表单
  2. 在表单中输入过滤条件
  3. 回车或点击表单中搜索按钮触发列表请求(这步不可以少,否则无法重现bug)
  4. 在快速搜索框中输入条件并回车请求,此时看到搜索表单和快速搜索的条件都正常,接口也正常
  5. 再次在表单中变更之前的同一字段的过滤条件
  6. 回车或点击表单中搜索按钮触发列表请求(这步也不可以少,否则无法重现bug)
  7. 在快速搜索框中输入条件并回车请求,此时看到搜索表单中最后一次变更中字段值被还原了,接口中对应的过滤条件也还原了

Version 版本

2.7

@yinlianghui yinlianghui added bug Something isn't working needs triaging 需要分类 labels Jan 8, 2025
@yinlianghui yinlianghui added this to the 2.7 milestone Jan 8, 2025
@yinlianghui yinlianghui self-assigned this Jan 8, 2025
@yinlianghui
Copy link
Contributor Author

该问题还有一个重现规则,就是第一次进入列表界面时,过滤器中已经存在过滤条件,即之前因为操作过过滤条件存入了本地存储中。如果是第一次进入列表,即之前从来没设置过过滤条件,那么无论如何都重现不了此bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triaging 需要分类
Projects
None yet
Development

No branches or pull requests

1 participant