Commit 8fd786c4 authored by Pan's avatar Pan

perf[tags-view]: when closeOthersTags moveToCurrentTag

parent 54e7ce2b
......@@ -92,7 +92,9 @@ export default {
},
closeOthersTags() {
this.$router.push(this.selectedTag.path)
this.$store.dispatch('delOthersViews', this.selectedTag)
this.$store.dispatch('delOthersViews', this.selectedTag).then(() => {
this.moveToCurrentTag()
})
},
closeAllTags() {
this.$store.dispatch('delAllViews')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment