提交 0d8717e9 编写于 作者: huangwensu's avatar huangwensu

token

上级 98a17dd0
...@@ -67,8 +67,10 @@ export default { ...@@ -67,8 +67,10 @@ export default {
localStorage.setItem('storageToken', vm.token) localStorage.setItem('storageToken', vm.token)
// vm.$router.push({ path: 'home' }) // vm.$router.push({ path: 'home' })
} else { } else {
window.location.href = getLoginUrl() // 没有token返回登录页面 if(!localStorage.getItem('storageToken')) {
return window.location.href = getLoginUrl() // 没有token返回登录页面
return
}
} }
}else { }else {
if(!localStorage.getItem('storageToken')) { if(!localStorage.getItem('storageToken')) {
......
...@@ -128,9 +128,9 @@ export default { ...@@ -128,9 +128,9 @@ export default {
color: #fff; color: #fff;
background: #06232C; background: #06232C;
} }
.el-menu-item:focus, .el-menu-item:hover { // .el-menu-item:focus, .el-menu-item:hover {
background: #06232C !important; // background: #06232C !important;
} // }
} }
} }
</style> </style>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册