vue2报错 Cannot read property '__ob__' of undefined
报错如下:vue.esm.js?efeb:1897 TypeError: Cannot read property '__ob__' of undefinedat VueComponent.Vue.$destroy (vue.esm.js?efeb:3998)at destroy (vue.esm.js?efeb:3168)at invokeDestroyHook...
报错如下:
vue.esm.js?efeb:1897 TypeError: Cannot read property '__ob__' of undefined
at VueComponent.Vue.$destroy (vue.esm.js?efeb:3998)
at destroy (vue.esm.js?efeb:3168)
at invokeDestroyHook (vue.esm.js?efeb:6119)
at removeVnodes (vue.esm.js?efeb:6135)
at updateChildren (vue.esm.js?efeb:6240)
at patchVnode (vue.esm.js?efeb:6324)
at updateChildren (vue.esm.js?efeb:6198)
at patchVnode (vue.esm.js?efeb:6324)
at VueComponent.patch [as __patch__] (vue.esm.js?efeb:6487)
at VueComponent.Vue._update (vue.esm.js?efeb:3951)
原因:
在某组件中的data()函数写错,错误的写法是data(){},正确的写法是data(){return {}}。
更多推荐
所有评论(0)