diff options
Diffstat (limited to 'viewer/src/store')
-rw-r--r-- | viewer/src/store/galleryStore.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/viewer/src/store/galleryStore.ts b/viewer/src/store/galleryStore.ts index c4a039f..663340f 100644 --- a/viewer/src/store/galleryStore.ts +++ b/viewer/src/store/galleryStore.ts | |||
@@ -18,6 +18,7 @@ | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | import { createModule, mutation, action } from "vuex-class-component"; | 20 | import { createModule, mutation, action } from "vuex-class-component"; |
21 | import Tools from '@/tools'; | ||
21 | 22 | ||
22 | const VuexModule = createModule({ | 23 | const VuexModule = createModule({ |
23 | namespaced: "galleryStore", | 24 | namespaced: "galleryStore", |
@@ -88,7 +89,7 @@ export default class GalleryStore extends VuexModule { | |||
88 | const parts = tag.split('.'); | 89 | const parts = tag.split('.'); |
89 | let lastPart: string | null = null; | 90 | let lastPart: string | null = null; |
90 | for (const part of parts) { | 91 | for (const part of parts) { |
91 | if (!index[part]) index[part] = { tag: part, items: [], children: {} }; | 92 | if (!index[part]) index[part] = { tag: part, tagfiltered: Tools.normalize(part), items: [], children: {} }; |
92 | if (!index[part].items.includes(item)) index[part].items.push(item); | 93 | if (!index[part].items.includes(item)) index[part].items.push(item); |
93 | if (lastPart) index[lastPart].children[part] = index[part]; | 94 | if (lastPart) index[lastPart].children[part] = index[part]; |
94 | lastPart = part; | 95 | lastPart = part; |