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切换页面为什么还要重新刷新呢? #6

Closed
slyang520 opened this issue Mar 23, 2018 · 1 comment
Closed

tab切换页面为什么还要重新刷新呢? #6

slyang520 opened this issue Mar 23, 2018 · 1 comment

Comments

@slyang520
Copy link

tab切换页面为什么还要重新刷新呢?

@daxiongYang
Copy link
Contributor

  1. 并没有刷新。你可以观察查询条件搜索框中的内容,切换不会被清掉的!
  2. 这里看到有发送请求是因为获取列表方法写在activated钩子里面(这个请求是带有查询条件内容的)。如果你想切换tab不重新请求列表数据,可以放在created/mounted钩子里面!

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