bug fix : 菜单 - > 关闭其他

This commit is contained in:
alvis 2020-06-17 14:04:17 +08:00
parent 943dae05da
commit a6863fb084

View File

@ -140,7 +140,9 @@ export default {
})
},
closeOthersTags () {
this.$router.push(this.selectedTag)
if (this.$route.fullPath !== this.selectedTag.fullPath) {
this.$router.push(this.selectedTag)
}
this.$store.dispatch('tagsView/delOthersViews', this.selectedTag).then(() => {
this.moveToCurrentTag()
})