From f94aa1aca37aed8ce57168dd882c873ad7e2095b Mon Sep 17 00:00:00 2001 From: Pan Date: Wed, 17 Oct 2018 14:08:00 +0800 Subject: [PATCH] fix[tagsView]: fixed moveToCurrentTag bug --- src/views/layout/components/TagsView.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/layout/components/TagsView.vue b/src/views/layout/components/TagsView.vue index 0aa1c89..c941312 100644 --- a/src/views/layout/components/TagsView.vue +++ b/src/views/layout/components/TagsView.vue @@ -5,14 +5,14 @@ v-for="tag in visitedViews" ref="tag" :class="isActive(tag)?'active':''" - :to="tag.fullPath" + :to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }" :key="tag.path" tag="span" class="tags-view-item" @click.middle.native="closeSelectedTag(tag)" @contextmenu.prevent.native="openMenu(tag,$event)"> {{ generateTitle(tag.title) }} - +
    @@ -75,7 +75,7 @@ export default { const tags = this.$refs.tag this.$nextTick(() => { for (const tag of tags) { - if (tag.to === this.$route.fullPath) { + if (tag.to.path === this.$route.path) { this.$refs.scrollPane.moveToTarget(tag) // when query is different then update -- GitLab