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

刷新tab的问题 #22

Open
1140349909 opened this issue May 9, 2020 · 1 comment
Open

刷新tab的问题 #22

1140349909 opened this issue May 9, 2020 · 1 comment

Comments

@1140349909
Copy link

一个form表单,提交成功之后希望刷新这个tab,该怎么做?

@noahlam
Copy link
Owner

noahlam commented May 12, 2020

好像没有考虑到刷新这个问题,目前来看,这个刷新没有比较完美的解决方案。
这边给出两个临时的解决方案:

  1. 在自己组件内部,提供类似重设数据的方法,如 resetData()。
  2. 注销掉这个组件,然后重新 push 一个。

如果你有完美的方案,也欢迎提出。

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

2 participants