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

[Need Help] 如何在ready返回false时,清空数据? #221

Closed
xuxule33 opened this issue Nov 30, 2023 · 3 comments
Closed

[Need Help] 如何在ready返回false时,清空数据? #221

xuxule33 opened this issue Nov 30, 2023 · 3 comments
Labels
question Further information is requested

Comments

@xuxule33
Copy link

问题描述 Problem Description

ready 返回false时,清空data

@xuxule33 xuxule33 added the question Further information is requested label Nov 30, 2023
@John60676
Copy link
Member

不妨说说你的原始需求

@xuxule33
Copy link
Author

xuxule33 commented Dec 1, 2023

@John60676
大致是这么一个需求,在用户选择了数据库后,显示对应表信息(所以用ready控制初始的时候不请求)。如果用户清空选择(此时ready为false),希望把对应的表信息也清空。最后用computed实现了,感觉相对合理。
image

image

@John60676
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants