By default, when the page is refreshed, it will return to the packaged tab
What I want to achieve is that when I click on the second-hand item, after the page is refreshed, it still stays in the second-hand item tab:
First add v-model, click time and name to the tab:
Secondly, define activeName:'pack' in data, which defaults to the tab of pack
Defined in methods
When the tab is clicked, the browser will generate a session:
Then use created to judge and get it, you can stay in the current tab