diff --git a/yudao-ui-admin/src/layout/components/TagsView/index.vue b/yudao-ui-admin/src/layout/components/TagsView/index.vue index bc6ce188a..d1e059ea9 100644 --- a/yudao-ui-admin/src/layout/components/TagsView/index.vue +++ b/yudao-ui-admin/src/layout/components/TagsView/index.vue @@ -153,7 +153,7 @@ export default { }) }, closeOthersTags() { - this.$router.push(this.selectedTag) + this.$router.push(this.selectedTag).catch(()=>{}); this.$store.dispatch('tagsView/delOthersViews', this.selectedTag).then(() => { this.moveToCurrentTag() })