报错 Error in nextTick: "TypeError: Cannot read property 'children' of undefined"
解决:加一个判断 if (数据存在),再执行this.nextTick()方法
if (this.$refs.child1) {
this.$nextTick(() => {
this.$refs.child1.updateOpened();
});
}
报错 Error in nextTick: "TypeError: Cannot read property 'children' of undefined"
解决:加一个判断 if (数据存在),再执行this.nextTick()方法
if (this.$refs.child1) {
this.$nextTick(() => {
this.$refs.child1.updateOpened();
});
}
本文标题:Error in nextTick: "TypeError: C
本文链接:https://www.haomeiwen.com/subject/owbhactx.html
网友评论