Vue在父组件中重新渲染子组件

在父组件中添加如下代码

  

$nextTick()
Defer the callback to be executed after the next DOM update cycle. Use it immediately after you’ve changed some data to wait for the DOM update.

Vue在父组件中重新渲染子组件_第1张图片

你可能感兴趣的:(前端,Vue)