Compare commits

...
1 Commits
3 changed files with 4 additions and 3 deletions
@@ -189,7 +189,8 @@ namespace FileShare_Services.Services.FileLibrary
} }
var absolutePath = info.FullName; var absolutePath = info.FullName;
seen.Add(absolutePath); if (!seen.Add(absolutePath))
continue;
if (!existing.TryGetValue(absolutePath, out var record)) if (!existing.TryGetValue(absolutePath, out var record))
{ {
+1 -1
View File
@@ -11,7 +11,7 @@ const router = createRouter({
{ path: 'recent/added', name: 'recent-added', component: () => import('../views/RecentAddedView.vue') }, { path: 'recent/added', name: 'recent-added', component: () => import('../views/RecentAddedView.vue') },
{ path: 'recent/played', name: 'recent-played', component: () => import('../views/RecentPlayedView.vue') }, { path: 'recent/played', name: 'recent-played', component: () => import('../views/RecentPlayedView.vue') },
{ path: 'browse/:rootId', name: 'browse', component: () => import('../views/BrowseView.vue'), props: true }, { path: 'browse/:rootId', name: 'browse', component: () => import('../views/BrowseView.vue'), props: true },
{ path: 'browse/:rootId/*', name: 'browse-path', component: () => import('../views/BrowseView.vue'), props: true }, { path: 'browse/:rootId/:path(.*)', name: 'browse-path', component: () => import('../views/BrowseView.vue'), props: true },
{ path: 'search', name: 'search', component: () => import('../views/SearchView.vue') }, { path: 'search', name: 'search', component: () => import('../views/SearchView.vue') },
], ],
}, },
+1 -1
View File
@@ -34,7 +34,7 @@ const rootId = computed(() => Number(route.params.rootId))
const pathFromRoute = computed(() => { const pathFromRoute = computed(() => {
const wildcard = route.params.path as string | undefined const wildcard = route.params.path as string | undefined
if (!wildcard) return '' if (!wildcard) return ''
return decodeURIComponent(wirecard) return decodeURIComponent(wildcard)
}) })
const browsePathArray = computed(() => pathFromRoute.value ? pathFromRoute.value.split('/') : []) const browsePathArray = computed(() => pathFromRoute.value ? pathFromRoute.value.split('/') : [])
const currentBrowsePath = computed(() => browsePathArray.value.join('/')) const currentBrowsePath = computed(() => browsePathArray.value.join('/'))