el-tree报TypeError: Cannot read properties of undefined (reading ‘getCheckedNodes‘)解决

When using el-tree to write batch deletion, the error is as follows:

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

 

solve:

The main reason is that <el-tree> is missing a line of code, just add ref="tree"

 

 

Je suppose que tu aimes

Origine blog.csdn.net/f746262041/article/details/128155776
conseillé
Classement