解决方案:
1、通过v-if,配置子组件渲染Boolean值进行控制;
2、数据变更时,进行切换;
data() {
return {
renderSonState: true
}
}
dataChange() {
this.renderSonState = false;
setTimeout(() => {
this.renderSonCompState = true;
},0)
}
Hold The Faith . Forever !
We can find a way .
Someday .
A path to a new world
And maybe
Maybe its just the begnning after all