S
S
Sergey2019-08-04 11:02:53
Vue.js
Sergey, 2019-08-04 11:02:53

How to save the last opened Vuikit tab during a session?

There is a directory on Vue, I use tabs from Vuikit , each tab has its own list of elements, when you go to the element page and return back, the first one becomes the active tab again. How to save the last opened tab within the session until the user has left the page?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-08-04
Primirenkov @sergeyprimirenkov

wrap page with tabs in keep-alive :

<keep-alive include="имя-компонента-страницы-с-табами">
  <router-view></router-view>
</keep-alive>

UPD. https://codesandbox.io/s/vue-template-811l1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question