vue 组件报错

vue.js:634 [Vue warn]: Error in render: "TypeError: Cannot read property 'text' of undefined"
found in
--->

warn @ vue.js:634
logError @ vue.js:1893
globalHandleError @ vue.js:1888
handleError @ vue.js:1848
Vue._render @ vue.js:3547
updateComponent @ vue.js:4061
get @ vue.js:4472
Watcher @ vue.js:4461
mountComponent @ vue.js:4068
Vue.mount @ vue.js:11923
init @ vue.js:3125
createComponent @ vue.js:5967
createElm @ vue.js:5914
createChildren @ vue.js:6042
createElm @ vue.js:5943
createChildren @ vue.js:6042
createElm @ vue.js:5943
patch @ vue.js:6503
Vue._update @ vue.js:3940
updateComponent @ vue.js:4061
get @ vue.js:4472
Watcher @ vue.js:4461
mountComponent @ vue.js:4068
Vue.mount @ vue.js:11923
Vue._init @ vue.js:5006
Vue @ vue.js:5072
(anonymous) @ index.html:96
vue.js:1897 TypeError: Cannot read property 'text' of undefined
at Proxy.eval (eval at createFunction (vue.js:11628), :3:39)
at VueComponent.Vue._render (vue.js:3545)
at VueComponent.updateComponent (vue.js:4061)
at Watcher.get (vue.js:4472)
at new Watcher (vue.js:4461)
at mountComponent (vue.js:4068)
at VueComponent.Vue.mount (vue.js:11923)
at init (vue.js:3125)
at createComponent (vue.js:5967)


如果vue组件中设定了传参,但使用组件时未传参,则会报出上述错误。

你可能感兴趣的:(vue 组件报错)