[英]Vuex Re-render of v-for with Deep change
When using Vuex with Arrays of Objects a v-for doesn't update as expected将 Vuex 与对象数组一起使用时,v-for 不会按预期更新
The watch method reacts to a mapped Getter change but the v-for element is not updated. watch 方法对映射的 Getter 更改做出反应,但 v-for 元素未更新。
Is there a way to force a rerender from the watch function?有没有办法强制从监视功能重新渲染?
尝试使用Vue.set
或[yourArray].splice
,如此处的警告所示: https ://v2.vuejs.org/v2/guide/list.html#Caveats
尝试根据监视变量创建一个计算属性并循环它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.