vue data is not updated in getters solution

  In Vue.js devtools see, we have clearly changed the state of the data warehouse, but our getters is the value after the rendering time is no longer re-rendering

  Workaround: Use vue.set () method, is specifically designed to solve this problem

  We just need to want to change attributes, put inside it

  Case Scenario

  In the vuex 

  mutations objects

  

  

  Use getters

  

 

Guess you like

Origin www.cnblogs.com/shangjun6/p/11416089.html