element ui Tabs: When a page hidden div switch the display, paging status issue?

Use the site to pagination element ui, but because the page has a tab to switch search list and then call the corresponding interface due to excessive data, there will be generated pages, sometimes in tab1 click page to the third page, and then switch back to tab2 view the information, continue to cut back tab1, this time paging stay in the third page, rather than automatically refresh problem first page.
Solution, element ui of the sort function has parameters of a current-page, add the parameter in the tab,
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
then the data is defined as one in which the handover event, is reset to 1, it.

The front novice, faulty, hope you can point out the great God, a place of infringement, hope promptly contact, thank you. QQ 643595853

Guess you like

Origin blog.csdn.net/jyy5806/article/details/93191094