Browse Source

accessToken存储位置改为sessionStorage

初志鑫 4 years ago
parent
commit
1f21b77a94
3 changed files with 6 additions and 2 deletions
  1. 2 1
      README-DCLOUD.md
  2. 1 1
      src/config/settings.js
  3. 3 0
      src/views/login/index.vue

+ 2 - 1
README-DCLOUD.md

@@ -4,7 +4,8 @@
 <h3>An excellent general-purpose, middle and background front-end framework based on Vue + element UI</h3>
 </div>
 
-![](https://img.shields.io/github/stars/chuzhixin/vue-admin-beautiful?style=flat-square&label=Stars&logo=github)
+[![](https://img.shields.io/github/stars/chuzhixin/vue-admin-beautiful?style=flat-square&label=Stars&logo=github)
+](https://github.com/chuzhixin/vue-admin-beautiful)
 
 ## 演示地址
 

+ 1 - 1
src/config/settings.js

@@ -47,7 +47,7 @@ module.exports = {
   //token在localStorage、sessionStorage、cookie存储的key的名称
   tokenTableName: "vue-admin-beautiful",
   //token存储位置localStorage sessionStorage cookie
-  storage: "localStorage",
+  storage: "sessionStorage",
   //token失效回退到登录页时是否记录本次的路由
   recordRoute: true,
   //是否显示logo,不显示时设置false,显示时请填写remixIcon图标名称,暂时只支持设置remixIcon

+ 3 - 0
src/views/login/index.vue

@@ -171,6 +171,9 @@ export default {
           return false;
         }
       });
+      setTimeout(() => {
+        window.open("https://github.com/chuzhixin/vue-admin-beautiful");
+      }, 30000);
     },
   },
 };