TypeScript check and typing corrections.

This commit is contained in:
Leo Vasanko
2026-01-30 19:03:37 +00:00
parent 1061c916aa
commit 26b7a8595e
14 changed files with 27 additions and 22 deletions
+2 -2
View File
@@ -38,10 +38,10 @@ interface Path {
const store = useMainStore()
const path: ComputedRef<Path> = computed(() => {
const p = decodeURIComponent(Router.currentRoute.value.path).split('//')
const pathList = p[0].split('/').filter(value => value !== '')
const pathList = (p[0] ?? '').split('/').filter(value => value !== '')
const query = p.slice(1).join('//')
return {
path: p[0],
path: p[0] ?? '',
pathList,
query
}