perf[tags-view]: when closeOthersTags moveToCurrentTag

This commit is contained in:
Pan 2017-12-14 11:01:07 +08:00
parent 54e7ce2b76
commit 8fd786c4ed

View file

@ -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')