mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-20 04:15:18 +02:00
fix
This commit is contained in:
parent
a212ff6bb0
commit
605c5d4a07
@ -25,9 +25,12 @@ const doLoadChildren = async () => {
|
|||||||
collapsed.value = !collapsed.value;
|
collapsed.value = !collapsed.value;
|
||||||
if (!collapsed.value && props.loadChildren) {
|
if (!collapsed.value && props.loadChildren) {
|
||||||
isLoading.value = true;
|
isLoading.value = true;
|
||||||
const _children = await props.loadChildren(props.item.path);
|
try {
|
||||||
children.value = _children;
|
const _children = await props.loadChildren(props.item.path);
|
||||||
isLoading.value = false;
|
children.value = _children;
|
||||||
|
} finally {
|
||||||
|
isLoading.value = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user