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

token

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