diff --git a/src/store/modules/tagsView.js b/src/store/modules/tagsView.js index 273d33bdcf3828af7bfc3aff6e1befa1611c6c8f..06d092c93878e153eb0764c99494d2a75fe44b10 100644 --- a/src/store/modules/tagsView.js +++ b/src/store/modules/tagsView.js @@ -6,11 +6,9 @@ const tagsView = { mutations: { ADD_VISITED_VIEWS: (state, view) => { if (state.visitedViews.some(v => v.path === view.path)) return - state.visitedViews.push({ - name: view.name, - path: view.path, + state.visitedViews.push(Object.assign({}, view, { title: view.meta.title || 'no-name' - }) + })) if (!view.meta.noCache) { state.cachedViews.push(view.name) } diff --git a/src/views/layout/components/TagsView.vue b/src/views/layout/components/TagsView.vue index 55467fc9356041810369a2c0cf242cd0f418d23c..ad40ccb30cfa4ad04eb34a1b4c7fb326007da951 100644 --- a/src/views/layout/components/TagsView.vue +++ b/src/views/layout/components/TagsView.vue @@ -2,7 +2,7 @@