fixes and cleanup

This commit is contained in:
2024-11-25 23:34:08 +00:00
parent 9601597cf6
commit 944ac08695
29 changed files with 398 additions and 100 deletions

View File

@@ -59,8 +59,12 @@ async function toggleCollapse() {
async function fetchDirectoryContent() {
try {
isLoading.value = true;
// preload from cache
content.value = await fs.listDir(props.dir, {cache: 'only-cache'});
try {
// preload from cache
content.value = await fs.listDir(props.dir, {cache: 'only-cache'});
} catch (err) {
// ignore missing cache
}
// replace with network
content.value = await fs.listDir(props.dir, {cache: 'use-network'});
} finally {