diff --git a/src/layout/components/tags.vue b/src/layout/components/tags.vue index c01ebc3..8384826 100644 --- a/src/layout/components/tags.vue +++ b/src/layout/components/tags.vue @@ -335,7 +335,7 @@ function closeRight() { if (nowTag.fullPath === tag.fullPath) { flag = true } - if ((tag.meta && tag.meta.affix) || !flag) { + if ((tag.meta && tag.meta.affix) || !flag || nowTag.fullPath === tag.fullPath) { return true } else { closeSelectedTag(tag, false)