简单又好的方式 给组件加key,需要重新加载时,只需要更改key如:只需要更改activeId 的值,group-list 组件便会重新渲染 <group-list :key="activeId"> 其他方式 v-if 组件的forceUpdate方法

Vicw.com用户头像 - XanderCheung XanderCheung 5802 0 0