Commit a66ca86c by 陈玉桐

删除token缓存

parent 471956a7
......@@ -21,6 +21,7 @@ function getUrlParam(name) {
}
router.beforeEach((to, from, next) => {
localStorage.removeItem('token');
if(!getUrlParam('token')){//地址不携带 token
//本地没有存储 token 去请求授权 ,有存储token直接跳转
if(!localStorage.getItem("token")){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment