代码如下this.$nextTick(()=>{ this._initScroll()});报错如下:[Vue warn]: Error in nextTick: "TypeError: Cannot read property 'children' of undefined"found in
6 回答
weibo_啊喂丶你能勤快点么_0
TA贡献1条经验 获得超4个赞
我也遇到这个问题了,将v-el:menu-wrapper改为 ref="menuWrapper"再改这里new BScroll(this.$refs.menuWrapper,{}),另外一个foodsWrapper也一样。
添加回答
举报
0/150
提交
取消