perf[tags-view]: when closeOthersTags moveToCurrentTag
This commit is contained in:
@@ -92,7 +92,9 @@ export default {
|
|||||||
},
|
},
|
||||||
closeOthersTags() {
|
closeOthersTags() {
|
||||||
this.$router.push(this.selectedTag.path)
|
this.$router.push(this.selectedTag.path)
|
||||||
this.$store.dispatch('delOthersViews', this.selectedTag)
|
this.$store.dispatch('delOthersViews', this.selectedTag).then(() => {
|
||||||
|
this.moveToCurrentTag()
|
||||||
|
})
|
||||||
},
|
},
|
||||||
closeAllTags() {
|
closeAllTags() {
|
||||||
this.$store.dispatch('delAllViews')
|
this.$store.dispatch('delAllViews')
|
||||||
|
Reference in New Issue
Block a user