From 2ec9fe74a81d539a61daa9e906d07e6f0b5c8d87 Mon Sep 17 00:00:00 2001 From: Pan Date: Mon, 27 Nov 2017 11:11:28 +0800 Subject: [PATCH] fix:fixed view tags bug --- src/views/layout/components/TagsView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/layout/components/TagsView.vue b/src/views/layout/components/TagsView.vue index 3e37b526..75f4c72a 100644 --- a/src/views/layout/components/TagsView.vue +++ b/src/views/layout/components/TagsView.vue @@ -23,7 +23,7 @@ export default { methods: { closeViewTags(view, $event) { this.$store.dispatch('delVisitedViews', view).then((views) => { - if (this.isActive(view.path)) { + if (this.isActive(view)) { const latestView = views.slice(-1)[0] if (latestView) { this.$router.push(latestView.path)