fix[tagsView]: update tagsview when query is different(#1090)

This commit is contained in:
花裤衩
2018-09-14 17:58:59 +08:00
committed by GitHub
parent 3277343804
commit 11163146c0
2 changed files with 19 additions and 0 deletions

View File

@@ -81,6 +81,12 @@ export default {
for (const tag of tags) {
if (tag.to.path === this.$route.path) {
this.$refs.scrollPane.moveToTarget(tag.$el)
// when query is different then update
if (tag.to.fullPath !== this.$route.fullPath) {
this.$store.dispatch('updateVisitedView', this.$route)
}
break
}
}