fix: tree not trigger loadData

close #4835
pull/4861/head
tangjinzhou 2021-11-05 14:39:42 +08:00
parent 8f77208806
commit 685460591d
2 changed files with 3 additions and 1 deletions

View File

@ -286,7 +286,8 @@ export default defineComponent({
syncLoadData();
});
onUpdated(() => {
//syncLoadData();
// https://github.com/vueComponent/ant-design-vue/issues/4835
syncLoadData();
});
// Switcher

View File

@ -1,3 +1,4 @@
// base rc-tree 5.0.1
import type { TreeProps, TreeNodeProps } from './props';
import Tree from './Tree';
import TreeNode from './TreeNode';