molecule icon indicating copy to clipboard operation
molecule copied to clipboard

bug: Tree组件在data数据变化后onLoadData不生效

Open BySlin opened this issue 3 years ago • 0 comments
trafficstars

Describe the bug

Versions

  • OS: windows11
  • Browser: Edge 105.0.1343.33
  • Molecule: 1.1.1

To reproduce

1、执行molecule.folderTree.add();添加目录 ,双击目录执行onLoadData加载子节点数据

2、执行molecule.folderTree.reset();

3、再执行molecule.folderTree.add();添加目录 ,再次双击目录onLoadData不在执行

Expected

点击目录时onLoadData生效

Actually happening

onLoadData不在生效

Tree组件在data数据变化后loadDataCache没有清空,导致此问题发生

BySlin avatar Sep 15 '22 16:09 BySlin