Skip to content

Commit 8fd786c

Browse files
committed
perf[tags-view]: when closeOthersTags moveToCurrentTag
1 parent 54e7ce2 commit 8fd786c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/views/layout/components/TagsView.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ export default {
9292
},
9393
closeOthersTags() {
9494
this.$router.push(this.selectedTag.path)
95-
this.$store.dispatch('delOthersViews', this.selectedTag)
95+
this.$store.dispatch('delOthersViews', this.selectedTag).then(() => {
96+
this.moveToCurrentTag()
97+
})
9698
},
9799
closeAllTags() {
98100
this.$store.dispatch('delAllViews')

0 commit comments

Comments
 (0)