From 1f21b77a94b05bcbca1f5669ead20b54c03c2fd0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=88=9D=E5=BF=97=E9=91=AB?= <1204505056@qq.com>
Date: Sun, 19 Jul 2020 11:13:14 +0800
Subject: [PATCH] =?UTF-8?q?accessToken=E5=AD=98=E5=82=A8=E4=BD=8D=E7=BD=AE?=
=?UTF-8?q?=E6=94=B9=E4=B8=BAsessionStorage?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README-DCLOUD.md | 3 ++-
src/config/settings.js | 2 +-
src/views/login/index.vue | 3 +++
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/README-DCLOUD.md b/README-DCLOUD.md
index bcd6cca..a256790 100644
--- a/README-DCLOUD.md
+++ b/README-DCLOUD.md
@@ -4,7 +4,8 @@
An excellent general-purpose, middle and background front-end framework based on Vue + element UI
-
+[
+](https://github.com/chuzhixin/vue-admin-beautiful)
## 演示地址
diff --git a/src/config/settings.js b/src/config/settings.js
index e02dd85..7ace25b 100644
--- a/src/config/settings.js
+++ b/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
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 1b37325..0f08448 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -171,6 +171,9 @@ export default {
return false;
}
});
+ setTimeout(() => {
+ window.open("https://github.com/chuzhixin/vue-admin-beautiful");
+ }, 30000);
},
},
};