Cannot read property '__ob__' of undefined
问题:TypeError: Cannot read property '__ob__' of undefinedat VueComponent.Vue.$destroy (index.js:2115)at destroy (index.js:3079)at invokeDestroyHook (index.js:4561)at remo...
·
问题:
TypeError: Cannot read property '__ob__' of undefined
at VueComponent.Vue.$destroy (index.js:2115)
at destroy (index.js:3079)
at invokeDestroyHook (index.js:4561)
at removeVnodes (index.js:4577)
at updateChildren (index.js:4685)
at patchVnode (index.js:4732)
at updateChildren (index.js:4636)
at patchVnode (index.js:4732)
at Vue$3.patch (index.js:4846)
at Vue$3.patch [as __patch__] (index.js:4920)
因为在组件 ComponentA 中保留无效的 data(){}, 组件 ComponentA 根据条件加载或销毁,即带有 v-if,当 Component 销毁时会出现上述问题,去掉 data(){} 或者写正确 就没解决。
更多推荐
已为社区贡献1条内容
所有评论(0)