TypeScript check and typing corrections.

This commit is contained in:
LeoVasanko committed 2026-01-30 19:03:37 +00:00
1 parent 21250a1a2d
commit 4f39875786
14 files changed
+27 -22

No files matched your search

+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
}