Skip to content

Commit 605c5d4

Browse files
committed
fix
1 parent a212ff6 commit 605c5d4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

web_src/js/components/ViewFileTreeItem.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ const doLoadChildren = async () => {
2525
collapsed.value = !collapsed.value;
2626
if (!collapsed.value && props.loadChildren) {
2727
isLoading.value = true;
28-
const _children = await props.loadChildren(props.item.path);
29-
children.value = _children;
30-
isLoading.value = false;
28+
try {
29+
const _children = await props.loadChildren(props.item.path);
30+
children.value = _children;
31+
} finally {
32+
isLoading.value = false;
33+
}
3134
}
3235
};
3336

0 commit comments

Comments
 (0)