Vue重新渲染组件

时间:2018-02-08 11:17:01

标签: javascript dom vuejs2 vue-component

如何在Vuejs(2.5.13)中重新渲染组件? Vue在root中呈现组件,当js重新加载我的DOM并且我的Vue组件不再渲染时,我遇到了一些麻烦。我在chrome console vm.$forceUpdate()控制台返回undefined中使用。

<div id="root>
   ...other DOM...            <-- 
   <components><components/>  <-- 
   <components><components/>  <--  JS reload DOM
   ...other DOM...            <--    
</div>

0 个答案:

没有答案