After the vuejs parent component data is updated, the child component is also initialized. What if you want the child component to remain in state?

1. Description of the problem:
the following figure:

api
1:

2:

Mar.02,2021

wrap it in keep-alive


just remove the key from the rendering list during v-for. The reason is presumed to be the problem of component reuse. -sharp263

Menu