Browse Source

修改路由缓存

zhaoke 3 years ago
parent
commit
3d3c819cb4
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/layout/index.vue

+ 3 - 3
src/layout/index.vue

@@ -115,9 +115,9 @@ export default {
       sessionStorage.removeItem("tabViews")
       sessionStorage.removeItem("tabViews")
       await this.$store.dispatch('app/toggleOutcheck', true)
       await this.$store.dispatch('app/toggleOutcheck', true)
       this.$store.dispatch('app/toggleOutflag', false)
       this.$store.dispatch('app/toggleOutflag', false)
-      // this.$store.dispatch('tagsView/delAllViews').then(({ visitedViews }) => {
-      //   this.$router.push('/login')
-      // })
+      this.$store.dispatch('tagsView/delAllViews').then(({ visitedViews }) => {
+        this.$router.push('/login')
+      })
     },
     },
     //修改密码
     //修改密码
     async editPwd () {
     async editPwd () {