[Vuejs]-Two arrays are synchronous change,Maybe a bug from VUE

0πŸ‘

βœ…

In Vue data are observable by default. If you assign one to another then it holds references. So, the solution is to create a new copy.

this.list = JSON.parse(JSON.stringify(TEMP_ARR));

Leave a comment