undefinedfix
Sign in

Multiple tags in Vue refer to the same component. How to save the state of the original component after switching back and forth? (for the same component, how to use keep alive)

zaferfrtlec1 edited in Wed, 06 Jul 2022

These two tabs refer to the same component (and this tab can be accumulated later). How to save the original state when switching back and forth? You can't save the same component with keep alive (or I use the wrong method). Or is there a better way to achieve it

5 Replies
obidano
commented on Thu, 07 Jul 2022

How do you switch this tab

phrby
commented on Thu, 07 Jul 2022

Do you have a solution? I have the same problem

ixdao
commented on Thu, 07 Jul 2022

Can the problem be more specific? For example, if you click the tag to get the data, and then render the data in the component, and then click the second tag to get the data, render the data, and return to the first tag, the data in the first tag can be cached?

Abdelwahhab
commented on Thu, 07 Jul 2022

Is there a solution to the same problem

lkoatirek
commented on Thu, 07 Jul 2022

Do bloggers have a solution?

lock This question has been locked and the reply function has been disabled.