perf[tags-view]: when closeOthersTags moveToCurrentTag
This commit is contained in:
parent
54e7ce2b76
commit
8fd786c4ed
1 changed files with 3 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue