diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue index ff7e4ee..9747dc3 100644 --- a/src/layout/components/TagsView/index.vue +++ b/src/layout/components/TagsView/index.vue @@ -147,8 +147,11 @@ }) router.beforeEach(async (to, from, next)=>{ - if(from.fullPath==='/error/404'&&to.fullPath==="/home") { - await store.dispatch('tagsView/removeView', [from.fullPath]) + + + if((from.fullPath==='/error/404'||from.fullPath==='/error/401')&&to.fullPath==="/home") { + let whiteList = ['/error/404','/error/401'] + await store.dispatch('tagsView/removeView', whiteList) } next() }) diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 05b32b9..750c2df 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -34,7 +34,7 @@