原文:調用子組件中的方法,明明定義了還報“Cannot read properties of undefined (reading 'fullValidEvent')”

在修改頁面,在父組件中直接調用子組件中的方法,通過ref來調用。明明在子組件中定義了這個方法,還一直報undefined 我就嘗試先確定存在這個組件才調用這個方法,果然這樣可以 ...

2021-11-29 16:50 0 2303 推薦指數:

查看詳情

TypeError: Cannot read properties of undefined (reading 'templateName')

封裝了一個組件,剛開始一直沒有報錯,后面添加數據之后就開始報錯了 TypeError: Cannot read properties of undefined (reading 'templateName') 當我新增的時候一直報錯,修改就不報錯,我一直是以為el-tab-pane引起 ...

Fri Jan 07 18:47:00 CST 2022 0 9580
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM