mirror of https://github.com/ElemeFE/element
Update cascader-panel.vue
parent
1dd1e8b577
commit
9cce4f339d
|
@ -316,7 +316,7 @@ export default {
|
||||||
const leafKey = this.config.leaf;
|
const leafKey = this.config.leaf;
|
||||||
|
|
||||||
if (Array.isArray(dataList) && dataList.filter(item => item[valueKey] === nodeValue).length > 0) {
|
if (Array.isArray(dataList) && dataList.filter(item => item[valueKey] === nodeValue).length > 0) {
|
||||||
const checkedNode = this.store.getNodeByValue(nodeValue);
|
const checkedNode = this.store.getNodeByValue(nodeValue, node.level + 1);
|
||||||
|
|
||||||
if (!checkedNode.data[leafKey]) {
|
if (!checkedNode.data[leafKey]) {
|
||||||
this.lazyLoad(checkedNode, () => {
|
this.lazyLoad(checkedNode, () => {
|
||||||
|
|
Loading…
Reference in New Issue