<el-tree ref="tree" :data="menu.treeData" :props="menu.defaultProps" :filter-node-method="filterNode" :expand-on-click-node="false" :load="loadTreeNodes" lazy @node-click="handleNodeClick">
loadTreeNodes: function (node, resolve) { if (node.level === 0) { // 第一次调用 return resolve(this.doLoadTreeNodes("0")); } if (node.level >= 1) { // 点击之后触发 return resolve(this.doLoadTreeNodes(node.data.id)); } },