解决vue变量改变但不会重新渲染的问题

问题原因:数据层次太多,没有触发render函数进行自动更新,需手动调用,调用方式如下:

this.$forceUpdate();

猜你喜欢

转载自www.cnblogs.com/llmatch/p/9262108.html