cycold / cycold.github.io

Please dot not star...
4 stars 1 forks source link

vuex 数据更新后,组件没有得到渲染 #131

Closed cycold closed 6 years ago

cycold commented 7 years ago

原因: 组件使用了内部的data数据渲染, 而将接收数据的属性作为初始值赋值了内部data的属性. 所以当外部(父组件)的数据改变时,内部组件将不会得到更新;

qq20161024-0 2x