accessToken存储位置改为sessionStorage

This commit is contained in:
初志鑫 2020-07-19 11:13:14 +08:00
parent fc41b8d0ba
commit 1f21b77a94
3 changed files with 6 additions and 2 deletions

View File

@ -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)
## 演示地址

View File

@ -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

View File

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