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: modal组件内使用grid,onOpenChange事件无法触发reload,触发query时表现异常 #5422

Open
5 tasks done
RanMaoting opened this issue Jan 17, 2025 · 1 comment

Comments

@RanMaoting
Copy link

Version

Vben Admin V5

Describe the bug?

弹窗内部使用grid时,直接在onOpenChange中调用gridApi.query(),接口调用成功,但是数据没有回显,加上nexttick也不行,必须使用settimeout放到下一个任务队列里面,或者使用onOpened事件才能成功, 应该是onOpenChange的调用在modal子组件渲染完成之前导致

Reproduction

/

System Info

/

Relevant log output

Validations

@RanMaoting RanMaoting changed the title Bug: modal组件内使用grid,onOpenChange事件无法触发query Bug: modal组件内使用grid,onOpenChange事件无法触发reload,触发query时表现异常 Jan 17, 2025
@mynetfan
Copy link
Collaborator

vxeTable的第一次query必须要在它自身的 _init 执行完毕之后才能用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants