elementUI 报错 Cannot read property ‘setCheckedKeys’ of undefined" 点击树节点,执行下面代码会报错,原因是:DOM元素未加载完成 handleRowClick(row) { this.$refs.tree.setCheckedKeys(ids); }, 正确写法: handleRowClick(row) {