Skip to content

Commit ddf6626

Browse files
committed
fix: 修复远程加载的时候没有设置已选的值的问题
1 parent 50c936d commit ddf6626

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/Tree.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,6 +1046,9 @@ export default defineComponent({
10461046
}
10471047
} else if (typeof props.load === 'function' && props.autoLoad) {
10481048
// Load root data from remote
1049+
if (props.modelValue || props.unloadDataList) {
1050+
setData([])
1051+
}
10491052
loadRootNodes()
10501053
}
10511054
const $iframe: any = iframe

0 commit comments

Comments
 (0)