Skip to content
Snippets Groups Projects
Commit 8fd786c4 authored by Pan's avatar Pan
Browse files

perf[tags-view]: when closeOthersTags moveToCurrentTag

parent 54e7ce2b
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,9 @@ export default { ...@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment