TypeError: Cannot read property 'children' of undefined 出現這樣的報錯

TypeError: Cannot read property ‘children’ of undefined
vue項目 element組件忘記加一個給新增加的數據是根據項目類型加載的不一樣會顯示,使用了v-show 後報錯 ‘children’ of undefined 後使用v-if報錯解決,因使用v-show還是會加載空數據,返回數據undefined 即可報錯

自我記錄,謹記

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章