Vue 问题记录

问题描述

vue跳转页面报错,直接导致页面崩溃。

vue.esm.js?a026:628 [Vue warn]: Error in nextTick: “TypeError: Cannot read property ‘ob’ of undefined”
warn @ vue.esm.js?a026:628
logError @ vue.esm.js?a026:1893
globalHandleError @ vue.esm.js?a026:1888
handleError @ vue.esm.js?a026:1848
eval @ vue.esm.js?a026:1991
flushCallbacks @ vue.esm.js?a026:1915
Promise.then (async)
timerFunc @ vue.esm.js?a026:1942
nextTick @ vue.esm.js?a026:1999
queueWatcher @ vue.esm.js?a026:4411
update @ vue.esm.js?a026:4553
notify @ vue.esm.js?a026:739
reactiveSetter @ vue.esm.js?a026:1064
proxySetter @ vue.esm.js?a026:4640
handleItemClick @ element-ui.common.js?5c96:3338
invokeWithErrorHandling @ vue.esm.js?a026:1863
Vue.KaTeX parse error: Expected group after '_' at position 278: …read property '_̲_ob__' of undef…destroy (vue.esm.js?a026:4004)
at destroy (vue.esm.js?a026:3168)
at invokeDestroyHook (vue.esm.js?a026:6125)
at removeVnodes (vue.esm.js?a026:6141)
at updateChildren (vue.esm.js?a026:6246)
at patchVnode (vue.esm.js?a026:6330)
at VueComponent.patch [as patch] (vue.esm.js?a026:6493)
at VueComponent.Vue._update (vue.esm.js?a026:3957)
at VueComponent.updateComponent (vue.esm.js?a026:4075)
at Watcher.get (vue.esm.js?a026:4488)

问题解决

百度了下:
https://blog.csdn.net/weixin_45899022/article/details/105453832
vue文件中的data(){}没有加return{}体。而且return不能为空。

 data() {
        
        },

修改后:
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值