TypeError: Cannot read properties of null (reading ‘disconnect‘)

在开发项目的时候,遇到如下错误:

TypeError: Cannot read properties of null (reading ‘disconnect‘)_第1张图片

 

然后点开这里,就会定位到错误在第几行

TypeError: Cannot read properties of null (reading ‘disconnect‘)_第2张图片

报错大概意思是 id是 null,打印row,发现确实有为空的情况,也就是说,组件之间传值的时候,如果没有值,接收不到会报警告

你可能感兴趣的:(前端)