vue $set(itemValue, fieldKey, value) 更新数据,视图不更新

通过this.$set() 更新数据,数据是更新成功了,视图不更新

解决办法,在后面 调用 this.$forceUpdate() 方法,成功更新视图

this.$set(itemValue, fieldKey, value)
this.$forceUpdate()
posted @ 2021-05-18 16:19  山村码农  阅读(211)  评论(0编辑  收藏  举报