原文:调用子组件中的方法,明明定义了还报“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