diff --git a/src/components/frame/Folder.vue b/src/components/frame/Folder.vue index cea8fbd9..8194b780 100644 --- a/src/components/frame/Folder.vue +++ b/src/components/frame/Folder.vue @@ -55,12 +55,8 @@ export default defineComponent({ path = path.split('/'); } - return { - name: this.$route.name, - params: { - path: [...path, this.data.name], - }, - }; + path = [...path, this.data.name]; // intentional copy + return { ...this.$route, params: { path } }; }, previews(): IPhoto[] { diff --git a/src/components/top-matter/FolderTopMatter.vue b/src/components/top-matter/FolderTopMatter.vue index 3404ecce..bbe9ec3f 100644 --- a/src/components/top-matter/FolderTopMatter.vue +++ b/src/components/top-matter/FolderTopMatter.vue @@ -1,7 +1,7 @@