Compare commits
1
Commits
6bdcb48c97
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
809ca92464 |
@@ -189,7 +189,8 @@ namespace FileShare_Services.Services.FileLibrary
|
||||
}
|
||||
|
||||
var absolutePath = info.FullName;
|
||||
seen.Add(absolutePath);
|
||||
if (!seen.Add(absolutePath))
|
||||
continue;
|
||||
|
||||
if (!existing.TryGetValue(absolutePath, out var record))
|
||||
{
|
||||
|
||||
@@ -11,7 +11,7 @@ const router = createRouter({
|
||||
{ path: 'recent/added', name: 'recent-added', component: () => import('../views/RecentAddedView.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-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') },
|
||||
],
|
||||
},
|
||||
|
||||
@@ -34,7 +34,7 @@ const rootId = computed(() => Number(route.params.rootId))
|
||||
const pathFromRoute = computed(() => {
|
||||
const wildcard = route.params.path as string | undefined
|
||||
if (!wildcard) return ''
|
||||
return decodeURIComponent(wirecard)
|
||||
return decodeURIComponent(wildcard)
|
||||
})
|
||||
const browsePathArray = computed(() => pathFromRoute.value ? pathFromRoute.value.split('/') : [])
|
||||
const currentBrowsePath = computed(() => browsePathArray.value.join('/'))
|
||||
|
||||
Reference in New Issue
Block a user